Interface GroupMembership<M extends GroupMember>

Type Parameters:
M - the member type
All Known Subinterfaces:
GroupMembership<M>
All Known Implementing Classes:
ViewMembership

public interface GroupMembership<M extends GroupMember>
Encapsulates the membership of a group.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the coordinator of this group membership.
    Returns the members comprising this group membership.
  • Method Details

    • getCoordinator

      M getCoordinator()
      Returns the coordinator of this group membership. All members of this membership will always agree on which member is the coordinator.
      Returns:
      the group coordinator
    • getMembers

      List<M> getMembers()
      Returns the members comprising this group membership. The membership order will be consistent on each member in the group.
      Returns:
      an immutable list of members ordered by descending age.