public abstract class AbstractLoadBalancer extends Object implements LoadBalancer, InitialMembershipListener
LoadBalancer
implementation.Constructor and Description |
---|
AbstractLoadBalancer() |
Modifier and Type | Method and Description |
---|---|
protected Member[] |
getDataMembers() |
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 |
memberRemoved(MembershipEvent membershipEvent)
Invoked when an existing member leaves the cluster.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canGetNextDataMember, next, nextDataMember
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()
protected Member[] getDataMembers()
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 clusterCopyright © 2024 Hazelcast, Inc.. All rights reserved.