Class JGroupsChannelBroadcastEndpoint
java.lang.Object
org.apache.activemq.artemis.api.core.JGroupsBroadcastEndpoint
org.apache.activemq.artemis.api.core.JGroupsChannelBroadcastEndpoint
- All Implemented Interfaces:
BroadcastEndpoint
An implementation of JGroupsBroadcastEndpoint that uses an externally managed JChannel for its operations.
Note - this implementation does not close the JChannel, since its externally created.
-
Constructor Summary
ConstructorsConstructorDescriptionJGroupsChannelBroadcastEndpoint
(JChannelManager manager, org.jgroups.JChannel jChannel, String channelName) -
Method Summary
Modifier and TypeMethodDescriptionorg.jgroups.JChannel
protected void
internalCloseChannel
(JChannelWrapper channel) Closes the channel used in this JGroups Broadcast.Methods inherited from class org.apache.activemq.artemis.api.core.JGroupsBroadcastEndpoint
broadcast, close, initChannel, internalOpen, openBroadcaster, openClient, receiveBroadcast, receiveBroadcast
-
Constructor Details
-
JGroupsChannelBroadcastEndpoint
public JGroupsChannelBroadcastEndpoint(JChannelManager manager, org.jgroups.JChannel jChannel, String channelName)
-
-
Method Details
-
createChannel
- Specified by:
createChannel
in classJGroupsBroadcastEndpoint
- Throws:
Exception
-
internalCloseChannel
Description copied from class:JGroupsBroadcastEndpoint
Closes the channel used in this JGroups Broadcast. Can be overridden by implementations that use an externally managed channel.- Overrides:
internalCloseChannel
in classJGroupsBroadcastEndpoint
-