|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.client.proxy.ClientClusterProxy
public class ClientClusterProxy
Client implementation of the Cluster
.
Constructor Summary | |
---|---|
ClientClusterProxy(ClientClusterServiceImpl clusterService)
|
Method Summary | |
---|---|
String |
addMembershipListener(MembershipListener listener)
Adds MembershipListener to listen for membership updates. |
long |
getClusterTime()
Returns the cluster-wide time in milliseconds. |
Member |
getLocalMember()
Returns this Hazelcast instance member. |
Set<Member> |
getMembers()
Set of the current members in the cluster. |
boolean |
removeMembershipListener(String registrationId)
Removes the specified MembershipListener. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClientClusterProxy(ClientClusterServiceImpl clusterService)
Method Detail |
---|
public String addMembershipListener(MembershipListener listener)
Cluster
Cluster.removeMembershipListener(String)
method.
If the MembershipListener implements the InitialMembershipListener
interface, it will also receive
the InitialMembershipEvent
.
There is no check for duplicate registrations, so if you register the listener twice, it will get events twice.
addMembershipListener
in interface Cluster
listener
- membership listener
Cluster.removeMembershipListener(String)
public boolean removeMembershipListener(String registrationId)
Cluster
removeMembershipListener
in interface Cluster
registrationId
- the registrationId of MembershipListener to remove.
Cluster.addMembershipListener(MembershipListener)
public Set<Member> getMembers()
Cluster
getMembers
in interface Cluster
public Member getLocalMember()
Cluster
getLocalMember
in interface Cluster
public long getClusterTime()
Cluster
getClusterTime
in interface Cluster
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |