Class JChannelWrapper
java.lang.Object
org.apache.activemq.artemis.api.core.jgroups.JChannelWrapper
This class wraps a JChannel with a reference counter. The reference counter controls the life of the JChannel. When
reference count is zero, the channel will be disconnected.
-
Constructor Summary
ConstructorsConstructorDescriptionJChannelWrapper(JChannelManager manager, String channelName, org.jgroups.JChannel channel) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddReceiver(JGroupsReceiver jGroupsReceiver) addRef()voidclose(boolean closeWrappedChannel) voidvoidconnect()intdecRef()org.jgroups.JChannelvoidremoveReceiver(JGroupsReceiver receiver) voidsend(org.jgroups.Message msg) toString()
-
Constructor Details
-
JChannelWrapper
public JChannelWrapper(JChannelManager manager, String channelName, org.jgroups.JChannel channel) throws Exception - Throws:
Exception
-
-
Method Details
-
getChannel
public org.jgroups.JChannel getChannel() -
getChannelName
-
close
public void close(boolean closeWrappedChannel) -
closeChannel
public void closeChannel() -
removeReceiver
-
connect
-
addReceiver
-
send
-
addRef
-
decRef
public int decRef() -
toString
-