Class NodeMemberGroup

java.lang.Object
io.atomix.primitive.partition.impl.NodeMemberGroup
All Implemented Interfaces:
MemberGroup

public class NodeMemberGroup extends Object implements MemberGroup
Node member group.
  • Constructor Details

  • Method Details

    • id

      public MemberGroupId id()
      Description copied from interface: MemberGroup
      Returns the group identifier.
      Specified by:
      id in interface MemberGroup
      Returns:
      the group identifier
    • isMember

      public boolean isMember(Member member)
      Description copied from interface: MemberGroup
      Returns a boolean indicating whether the given node is a member of the group.
      Specified by:
      isMember in interface MemberGroup
      Parameters:
      member - the node to check
      Returns:
      indicates whether the given node is a member of the group
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object