Class JChannelWrapper

java.lang.Object
org.apache.activemq.artemis.api.core.jgroups.JChannelWrapper

public class JChannelWrapper extends Object
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 Details

  • Method Details

    • getChannel

      public org.jgroups.JChannel getChannel()
    • getChannelName

      public String getChannelName()
    • close

      public void close(boolean closeWrappedChannel)
    • closeChannel

      public void closeChannel()
    • removeReceiver

      public void removeReceiver(JGroupsReceiver receiver)
    • connect

      public void connect() throws Exception
      Throws:
      Exception
    • addReceiver

      public void addReceiver(JGroupsReceiver jGroupsReceiver)
    • send

      public void send(org.jgroups.Message msg) throws Exception
      Throws:
      Exception
    • addRef

      public JChannelWrapper addRef()
    • toString

      public String toString()
      Overrides:
      toString in class Object