Class JChannelCommandDispatcher<CC,MC>

java.lang.Object
org.wildfly.clustering.server.jgroups.dispatcher.JChannelCommandDispatcher<CC,MC>
Type Parameters:
CC - the command execution context
MC - the marshalling context
All Implemented Interfaces:
AutoCloseable, org.wildfly.clustering.server.dispatcher.CommandDispatcher<ChannelGroupMember,CC>

public class JChannelCommandDispatcher<CC,MC> extends Object implements org.wildfly.clustering.server.dispatcher.CommandDispatcher<ChannelGroupMember,CC>
MessageDispatcher-based command dispatcher.
Author:
Paul Ferraro
  • Constructor Details

  • Method Details

    • getContext

      public CC getContext()
      Specified by:
      getContext in interface org.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC>
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface org.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC>
    • dispatchToMember

      public <R, E extends Exception> CompletionStage<R> dispatchToMember(org.wildfly.clustering.server.dispatcher.Command<R,? super CC,E> command, ChannelGroupMember member) throws IOException
      Specified by:
      dispatchToMember in interface org.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC>
      Throws:
      IOException
    • dispatchToGroup

      public <R, E extends Exception> Map<ChannelGroupMember,CompletionStage<R>> dispatchToGroup(org.wildfly.clustering.server.dispatcher.Command<R,? super CC,E> command, Set<ChannelGroupMember> excluding) throws IOException
      Specified by:
      dispatchToGroup in interface org.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC>
      Throws:
      IOException