|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.client.util.AbstractLoadBalancer
public abstract class AbstractLoadBalancer
An abstract LoadBalancer
implementation.
Constructor Summary | |
---|---|
AbstractLoadBalancer()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.hazelcast.client.LoadBalancer |
---|
next |
Constructor Detail |
---|
public AbstractLoadBalancer()
Method Detail |
---|
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 changed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |