Package org.wildfly.clustering.group
Interface Membership
-
public interface MembershipEncapsulates an immutable membership of a group.- Author:
- Paul Ferraro
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NodegetCoordinator()Returns the coordinator node of this group membership.List<Node>getMembers()Returns the nodes that comprise this group membership.booleanisCoordinator()Indicates whether or not the local node is the coordinator of this group membership.
-
-
-
Method Detail
-
isCoordinator
boolean isCoordinator()
Indicates whether or not the local node is the coordinator of this group membership. Semantically equivalent to:group.getLocalNode().equals(#getCoordinator())- Returns:
- true, if we are the group membership coordinator, false otherwise
-
getCoordinator
Node getCoordinator()
Returns the coordinator node of this group membership. All nodes of this membership will always agree on which node is the coordinator.- Returns:
- the group coordinator node
-
-