Interface GroupMembership<M extends org.wildfly.clustering.server.GroupMember>
- Type Parameters:
M- the group member type
- All Superinterfaces:
org.wildfly.clustering.server.GroupMembership<M>
public interface GroupMembership<M extends org.wildfly.clustering.server.GroupMember>
extends org.wildfly.clustering.server.GroupMembership<M>
Group membership whose coordinator is identified by its index in the membership.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault MintReturns the index of the group coordinator.static <M extends org.wildfly.clustering.server.GroupMember>
GroupMembership<M> singleton(M member) Returns a singleton group membership.Methods inherited from interface org.wildfly.clustering.server.GroupMembership
getMembers
-
Method Details
-
getCoordinatorIndex
int getCoordinatorIndex()Returns the index of the group coordinator.- Returns:
- the index of the group coordinator.
-
getCoordinator
-
singleton
Returns a singleton group membership.- Type Parameters:
M- the member type- Parameters:
member- the single group member- Returns:
- a singleton group membership.
-