Class ChannelCommandDispatcher<CC,​MC>

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

    public class ChannelCommandDispatcher<CC,​MC>
    extends Object
    implements org.wildfly.clustering.dispatcher.CommandDispatcher<CC>
    MessageDispatcher-based command dispatcher.
    Author:
    Paul Ferraro
    • Constructor Detail

      • ChannelCommandDispatcher

        public ChannelCommandDispatcher​(org.jgroups.blocks.MessageDispatcher dispatcher,
                                        CommandMarshaller<CC> marshaller,
                                        MC context,
                                        Group<org.jgroups.Address> group,
                                        Duration timeout,
                                        org.wildfly.clustering.dispatcher.CommandDispatcher<CC> localDispatcher,
                                        Runnable closeTask)
    • Method Detail

      • getContext

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

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

        public <R> CompletionStage<R> executeOnMember​(org.wildfly.clustering.dispatcher.Command<R,​? super CC> command,
                                                      org.wildfly.clustering.group.Node member)
                                               throws org.wildfly.clustering.dispatcher.CommandDispatcherException
        Specified by:
        executeOnMember in interface org.wildfly.clustering.dispatcher.CommandDispatcher<CC>
        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 CC> command,
                                                                                                  org.wildfly.clustering.group.Node... excludedMembers)
                                                                                           throws org.wildfly.clustering.dispatcher.CommandDispatcherException
        Specified by:
        executeOnGroup in interface org.wildfly.clustering.dispatcher.CommandDispatcher<CC>
        Throws:
        org.wildfly.clustering.dispatcher.CommandDispatcherException