Constructor and Description |
---|
ClusterProxy(ClusterServiceImpl clusterService) |
Modifier and Type | Method and Description |
---|---|
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 current members of the cluster.
|
boolean |
removeMembershipListener(String registrationId)
Removes the specified membership listener.
|
public ClusterProxy(ClusterServiceImpl clusterService)
public Member getLocalMember()
Cluster
getLocalMember
in interface Cluster
public Set<Member> getMembers()
Cluster
getMembers
in interface Cluster
public long getClusterTime()
Cluster
getClusterTime
in interface Cluster
public String addMembershipListener(MembershipListener listener)
Cluster
InitialMembershipListener
interface, it will also receive
the InitialMembershipEvent
.addMembershipListener
in interface Cluster
listener
- membership listenerpublic boolean removeMembershipListener(String registrationId)
Cluster
removeMembershipListener
in interface Cluster
registrationId
- Id of listener registration.Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.