com.hazelcast.client.util
public abstract class AbstractLoadBalancer extends Object implements LoadBalancer, MembershipListener
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 |
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 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 void memberAttributeChanged(MemberAttributeEvent memberAttributeEvent)
MembershipListener
memberAttributeChanged
in interface MembershipListener
memberAttributeEvent
- member attribute event when an attribute of a member was changedCopyright © 2015 Hazelcast, Inc.. All Rights Reserved.