Class JChannelCommandDispatcherFactory

java.lang.Object
org.wildfly.clustering.server.jgroups.dispatcher.JChannelCommandDispatcherFactory
All Implemented Interfaces:
AutoCloseable, Runnable, org.jgroups.blocks.RequestHandler, org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<ChannelGroupMember>, org.wildfly.clustering.server.group.GroupCommandDispatcherFactory<org.jgroups.Address,ChannelGroupMember>, ChannelCommandDispatcherFactory, org.wildfly.clustering.server.Registration

public class JChannelCommandDispatcherFactory extends Object implements ChannelCommandDispatcherFactory, org.jgroups.blocks.RequestHandler, Runnable
MessageDispatcher based CommandDispatcherFactory. This factory can produce multiple CommandDispatcher instances, all of which will share the same MessageDispatcher instance.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • run

      public void run()
      Specified by:
      run in interface Runnable
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.server.Registration
    • handle

      public Object handle(org.jgroups.Message request) throws Exception
      Specified by:
      handle in interface org.jgroups.blocks.RequestHandler
      Throws:
      Exception
    • handle

      public void handle(org.jgroups.Message request, org.jgroups.blocks.Response response) throws Exception
      Specified by:
      handle in interface org.jgroups.blocks.RequestHandler
      Throws:
      Exception
    • getGroup

      public ChannelGroup getGroup()
      Specified by:
      getGroup in interface ChannelCommandDispatcherFactory
      Specified by:
      getGroup in interface org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<ChannelGroupMember>
      Specified by:
      getGroup in interface org.wildfly.clustering.server.group.GroupCommandDispatcherFactory<org.jgroups.Address,ChannelGroupMember>
    • createCommandDispatcher

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