Package io.atomix.primitive.partition
Interface MemberGroup
- All Known Implementing Classes:
NodeMemberGroup
public interface MemberGroup
Partition member group.
The member group represents a group of nodes that can own a single replica for a single partition. Replication is performed in a manner that avoids assigning multiple replicas to the same member group.
-
Method Summary
Modifier and TypeMethodDescriptionid()Returns the group identifier.booleanReturns a boolean indicating whether the given node is a member of the group.
-
Method Details
-
id
MemberGroupId id()Returns the group identifier.- Returns:
- the group identifier
-
isMember
Returns a boolean indicating whether the given node is a member of the group.- Parameters:
member- the node to check- Returns:
- indicates whether the given node is a member of the group
-