Interface Group<M extends GroupMember>

Type Parameters:
M - the group member type
All Superinterfaces:
Registrar<GroupMembershipListener<M>>
All Known Subinterfaces:
CacheContainerGroup, ChannelGroup, Group<I,M>, LocalGroup
All Known Implementing Classes:
EmbeddedCacheManagerGroup, JChannelGroup

public interface Group<M extends GroupMember> extends Registrar<GroupMembershipListener<M>>
Represents a set of group members.
Author:
Paul Ferraro
  • Method Details

    • getName

      String getName()
      Returns the logical name of this group.
      Returns:
      the group name
    • getLocalMember

      M getLocalMember()
      Returns the local member.
      Returns:
      the local member
    • getMembership

      GroupMembership<M> getMembership()
      Gets the current membership of this group
      Returns:
      the group membership
    • isSingleton

      boolean isSingleton()
      Indicates whether or not this is a singleton group. The membership of a singleton group contains only the local member and never changes.
      Returns:
      true, if this is a singleton group, false otherwise.