public abstract class AbstractLoadBalancer extends Object implements LoadBalancer, InitialMembershipListener
LoadBalancer
implementation.Constructor and Description |
---|
AbstractLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
protected Member[] |
getMembers() |
void |
init(Cluster cluster,
ClientConfig config)
Initializes the LoadBalancer.
|
void |
init(InitialMembershipEvent event)
Called when this listener is registered.
|
void |
memberAdded(MembershipEvent membershipEvent)
Invoked when a new member is added to the cluster.
|
void |
memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)
Invoked when an attribute of a member was changed.
|
void |
memberRemoved(MembershipEvent membershipEvent)
Invoked when an existing member leaves the cluster.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
next
public final void init(Cluster cluster, ClientConfig config)
LoadBalancer
init
in interface LoadBalancer
cluster
- the Cluster this LoadBalancer uses to select members from.config
- the ClientConfig.protected Member[] getMembers()
public final void init(InitialMembershipEvent event)
InitialMembershipListener
init
in interface InitialMembershipListener
event
- the MembershipInitializeEvent received when the listener is registeredpublic final void memberAdded(MembershipEvent membershipEvent)
MembershipListener
memberAdded
in interface MembershipListener
membershipEvent
- membership eventpublic final void memberRemoved(MembershipEvent membershipEvent)
MembershipListener
memberRemoved
in interface MembershipListener
membershipEvent
- membership event when an existing member leaves the clusterpublic final void memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)
MembershipListener
memberAttributeChanged
in interface MembershipListener
memberAttributeEvent
- member attribute event when an attribute of a member was changedCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.