Interface ChannelGroup
- All Superinterfaces:
AutoCloseable, Group<ChannelGroupMember>, Group<org.jgroups.Address, ChannelGroupMember>, Registrar<GroupMembershipListener<ChannelGroupMember>>
- All Known Implementing Classes:
JChannelGroup
A channel-based group whose membership is based on the channel view.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.jgroups.JChannelReturns the channel associated with this group.Returns a factory for creating group members from an identifiers.default StringgetName()Returns the logical name of this group.default booleanIndicates whether or not this is a singleton group.Methods inherited from interface Group
getLocalMember, getMembership
-
Method Details
-
getChannel
org.jgroups.JChannel getChannel()Returns the channel associated with this group.- Returns:
- the channel associated with this group.
-
getName
Description copied from interface:GroupReturns the logical name of this group.- Specified by:
getNamein interfaceGroup<ChannelGroupMember>- Returns:
- the group name
-
isSingleton
default boolean isSingleton()Description copied from interface:GroupIndicates whether or not this is a singleton group. The membership of a singleton group contains only the local member and never changes.- Specified by:
isSingletonin interfaceGroup<ChannelGroupMember>- Returns:
- true, if this is a singleton group, false otherwise.
-
getGroupMemberFactory
ChannelGroupMemberFactory getGroupMemberFactory()Description copied from interface:GroupReturns a factory for creating group members from an identifiers.- Specified by:
getGroupMemberFactoryin interfaceGroup<org.jgroups.Address, ChannelGroupMember>- Returns:
- a group member factory
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-