JChannelManager (ActiveMQ Artemis Web 1.5.3.jbossorg-002 API)
Date: 2017-02-15

org.apache.activemq.artemis.api.core.jgroups

## Class JChannelManager

- java.lang.Object
- - org.apache.activemq.artemis.api.core.jgroups.JChannelManager

-     public class JChannelManager
      extends Object

  This class maintain a global Map of JChannels wrapped in JChannelWrapper for the purpose of reference counting. Wherever a JChannel is needed it should only get it by calling the getChannel() method of this class. The real disconnect of channels are also done here only.

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `JChannelManager` | `clear()`
    `static JChannelManager` | `getInstance()`
    `JChannelWrapper` | `getJChannel(String channelName, JGroupsBroadcastEndpoint endpoint)`
    `boolean` | `isLoopbackMessages()`
    `void` | `removeChannel(String channelName)`
    `JChannelManager` | `setLoopbackMessages(boolean loopbackMessages)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getInstance

          public static JChannelManager getInstance()

    - #### clear

          public JChannelManager clear()

    - #### isLoopbackMessages

          public boolean isLoopbackMessages()

    - #### setLoopbackMessages

          public JChannelManager setLoopbackMessages(boolean loopbackMessages)

    - #### getJChannel

          public JChannelWrapper getJChannel(String channelName,
                                             JGroupsBroadcastEndpoint endpoint)
                                      throws Exception

      Throws:
        `Exception`

    - #### removeChannel

          public void removeChannel(String channelName)

Copyright © 2017 The Apache Software Foundation. All rights reserved.