org.apache.activemq.artemis.api.core

## Class ChannelBroadcastEndpointFactory

- java.lang.Object
- - org.apache.activemq.artemis.api.core.ChannelBroadcastEndpointFactory

- All Implemented Interfaces:
    Serializable, BroadcastEndpointFactory

      public class ChannelBroadcastEndpointFactory
      extends Object
      implements BroadcastEndpointFactory

  An implementation of BroadcastEndpointFactory that uses an externally managed JChannel for JGroups clustering. Note - the underlying JChannel is not closed in this implementation.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ChannelBroadcastEndpointFactory(org.jgroups.JChannel channel, String channelName)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `BroadcastEndpoint` | `createBroadcastEndpoint()`
    `org.jgroups.JChannel` | `getChannel()`
    `String` | `getChannelName()`
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### ChannelBroadcastEndpointFactory

          public ChannelBroadcastEndpointFactory(org.jgroups.JChannel channel,
                                                 String channelName)

  - ### Method Detail

    - #### getChannel

          public org.jgroups.JChannel getChannel()

    - #### getChannelName

          public String getChannelName()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### createBroadcastEndpoint

          public BroadcastEndpoint createBroadcastEndpoint()
                                                    throws Exception

      Specified by:
        `createBroadcastEndpoint` in interface `BroadcastEndpointFactory`
      Throws:
        `Exception`

Copyright © 2017. All rights reserved.