Interface Membership


@Deprecated(forRemoval=true) public interface Membership
Deprecated, for removal: This API element is subject to removal in a future version.
Replaced by GroupMembership.
Encapsulates an immutable membership of a group.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the coordinator node of this group membership.
    Deprecated, for removal: This API element is subject to removal in a future version.
    Returns the nodes that comprise this group membership.
    boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Indicates whether or not the local node is the coordinator of this group membership.
  • Method Details

    • isCoordinator

      boolean isCoordinator()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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()
      Deprecated, for removal: This API element is subject to removal in a future version.
      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
    • getMembers

      List<Node> getMembers()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the nodes that comprise this group membership. The membership order will be consistent on each node in the group.
      Returns:
      a list of nodes ordered by descending age.