public interface Cluster
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.
|
String addMembershipListener(MembershipListener listener)
InitialMembershipListener
interface, it will also receive
the InitialMembershipEvent
.listener
- membership listenerboolean removeMembershipListener(String registrationId)
registrationId
- Id of listener registration.Set<Member> getMembers()
Member getLocalMember()
long getClusterTime()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.