Class LocalCommandDispatcher<C>

  • Type Parameters:
    C - command context
    All Implemented Interfaces:
    AutoCloseable, org.wildfly.clustering.dispatcher.CommandDispatcher<C>

    public class LocalCommandDispatcher<C>
    extends Object
    implements org.wildfly.clustering.dispatcher.CommandDispatcher<C>
    Non-clustered CommandDispatcher implementation
    Author:
    Paul Ferraro
    • Constructor Detail

      • LocalCommandDispatcher

        public LocalCommandDispatcher​(org.wildfly.clustering.group.Node node,
                                      C context)
    • Method Detail

      • getContext

        public C getContext()
        Specified by:
        getContext in interface org.wildfly.clustering.dispatcher.CommandDispatcher<C>
      • executeOnMember

        public <R> CompletionStage<R> executeOnMember​(org.wildfly.clustering.dispatcher.Command<R,​? super C> command,
                                                      org.wildfly.clustering.group.Node member)
                                               throws org.wildfly.clustering.dispatcher.CommandDispatcherException
        Specified by:
        executeOnMember in interface org.wildfly.clustering.dispatcher.CommandDispatcher<C>
        Throws:
        org.wildfly.clustering.dispatcher.CommandDispatcherException
      • executeOnGroup

        public <R> Map<org.wildfly.clustering.group.Node,​CompletionStage<R>> executeOnGroup​(org.wildfly.clustering.dispatcher.Command<R,​? super C> command,
                                                                                                  org.wildfly.clustering.group.Node... excludedMembers)
                                                                                           throws org.wildfly.clustering.dispatcher.CommandDispatcherException
        Specified by:
        executeOnGroup in interface org.wildfly.clustering.dispatcher.CommandDispatcher<C>
        Throws:
        org.wildfly.clustering.dispatcher.CommandDispatcherException
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface org.wildfly.clustering.dispatcher.CommandDispatcher<C>