Class JChannelGroup
java.lang.Object
org.wildfly.clustering.server.jgroups.JChannelGroup
- All Implemented Interfaces:
AutoCloseable, org.jgroups.Receiver, Group<ChannelGroupMember>, Group<org.jgroups.Address, ChannelGroupMember>, ChannelGroup, Registrar<GroupMembershipListener<ChannelGroupMember>>
A channel-based group.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionJChannelGroup(org.jgroups.JChannel channel) Creates a channel-based group using the specified channel. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()org.jgroups.JChannelReturns the channel associated with this group.Returns a factory for creating group members from an identifiers.Returns the local member.Gets the current membership of this groupregister(GroupMembershipListener<ChannelGroupMember> listener) Registers an object.voidviewAccepted(org.jgroups.View view) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChannelGroup
getName, isSingletonMethods inherited from interface org.jgroups.Receiver
getState, receive, receive, setState
-
Constructor Details
-
JChannelGroup
public JChannelGroup(org.jgroups.JChannel channel) Creates a channel-based group using the specified channel.- Parameters:
channel- a channel
-
-
Method Details
-
getChannel
public org.jgroups.JChannel getChannel()Description copied from interface:ChannelGroupReturns the channel associated with this group.- Specified by:
getChannelin interfaceChannelGroup- Returns:
- the channel associated with this group.
-
register
Description copied from interface:RegistrarRegisters an object. The object is unregistered when the generatedRegistrationis closed.- Specified by:
registerin interfaceRegistrar<GroupMembershipListener<ChannelGroupMember>>- Parameters:
listener- an object to register- Returns:
- an object registration.
-
getMembership
Description copied from interface:GroupGets the current membership of this group- Specified by:
getMembershipin interfaceGroup<ChannelGroupMember>- Returns:
- the group membership
-
getLocalMember
Description copied from interface:GroupReturns the local member.- Specified by:
getLocalMemberin interfaceGroup<ChannelGroupMember>- Returns:
- the local member
-
getGroupMemberFactory
Description copied from interface:GroupReturns a factory for creating group members from an identifiers.- Specified by:
getGroupMemberFactoryin interfaceChannelGroup- Specified by:
getGroupMemberFactoryin interfaceGroup<org.jgroups.Address, ChannelGroupMember>- Returns:
- a group member factory
-
viewAccepted
public void viewAccepted(org.jgroups.View view) - Specified by:
viewAcceptedin interfaceorg.jgroups.Receiver
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannelGroup
-