Class ChannelCommandDispatcher<CC,MC>
- java.lang.Object
-
- org.wildfly.clustering.server.infinispan.dispatcher.ChannelCommandDispatcher<CC,MC>
-
- Type Parameters:
CC- command execution context
- All Implemented Interfaces:
AutoCloseable,CommandDispatcher<CC>
public class ChannelCommandDispatcher<CC,MC> extends Object implements CommandDispatcher<CC>
MessageDispatcher-based command dispatcher.- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description ChannelCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher, CommandMarshaller<CC> marshaller, MC context, Group<org.jgroups.Address> group, Duration timeout, CommandDispatcher<CC> localDispatcher, Runnable closeTask)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<R> Map<Node,CompletionStage<R>>executeOnGroup(Command<R,? super CC> command, Node... excludedMembers)<R> CompletionStage<R>executeOnMember(Command<R,? super CC> command, Node member)CCgetContext()
-
-
-
Constructor Detail
-
ChannelCommandDispatcher
public ChannelCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher, CommandMarshaller<CC> marshaller, MC context, Group<org.jgroups.Address> group, Duration timeout, CommandDispatcher<CC> localDispatcher, Runnable closeTask)
-
-
Method Detail
-
getContext
public CC getContext()
- Specified by:
getContextin interfaceCommandDispatcher<CC>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCommandDispatcher<CC>
-
executeOnMember
public <R> CompletionStage<R> executeOnMember(Command<R,? super CC> command, Node member) throws CommandDispatcherException
- Specified by:
executeOnMemberin interfaceCommandDispatcher<CC>- Throws:
CommandDispatcherException
-
executeOnGroup
public <R> Map<Node,CompletionStage<R>> executeOnGroup(Command<R,? super CC> command, Node... excludedMembers) throws CommandDispatcherException
- Specified by:
executeOnGroupin interfaceCommandDispatcher<CC>- Throws:
CommandDispatcherException
-
-