Package io.atomix.primitive.partition
Interface MemberGroup
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 Type Method Description MemberGroupIdid()Returns the group identifier.booleanisMember(io.atomix.cluster.Member member)Returns 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
boolean isMember(io.atomix.cluster.Member member)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
-