Class ConcurrentBroadcastCommandDispatcherFactory

java.lang.Object
org.wildfly.extension.messaging.activemq.broadcast.ConcurrentBroadcastCommandDispatcherFactory
All Implemented Interfaces:
org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>, org.wildfly.clustering.server.Registrar<BroadcastReceiver>, BroadcastCommandDispatcherFactory, BroadcastReceiver, BroadcastReceiverRegistrar

public class ConcurrentBroadcastCommandDispatcherFactory extends Object implements BroadcastCommandDispatcherFactory
A BroadcastCommandDispatcherFactory that returns the same CommandDispatcher instance for a given identifier.
Author:
Paul Ferraro
  • Constructor Details

    • ConcurrentBroadcastCommandDispatcherFactory

      public ConcurrentBroadcastCommandDispatcherFactory(org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember> dispatcherFactory)
  • Method Details

    • receive

      public void receive(byte[] data)
      Description copied from interface: BroadcastReceiver
      Receives the specified broadcast data.
      Specified by:
      receive in interface BroadcastReceiver
      Parameters:
      data - broadcast data
    • register

      public org.wildfly.clustering.server.Registration register(BroadcastReceiver receiver)
      Specified by:
      register in interface org.wildfly.clustering.server.Registrar<BroadcastReceiver>
    • getGroup

      public org.wildfly.clustering.server.Group<org.wildfly.clustering.server.GroupMember> getGroup()
      Specified by:
      getGroup in interface org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>
    • createCommandDispatcher

      public <C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,C> createCommandDispatcher(Object id, C context)
      Specified by:
      createCommandDispatcher in interface org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>
    • createCommandDispatcher

      public <C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<org.wildfly.clustering.server.GroupMember,C> createCommandDispatcher(Object id, C context, ClassLoader loader)
      Specified by:
      createCommandDispatcher in interface org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<org.wildfly.clustering.server.GroupMember>