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,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 Summary
Constructors Constructor Description 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<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)<R> CompletionStage<R>executeOnMember(org.wildfly.clustering.dispatcher.Command<R,? super CC> command, org.wildfly.clustering.group.Node member)CCgetContext()
-
-
-
Method Detail
-
getContext
public CC getContext()
- Specified by:
getContextin interfaceorg.wildfly.clustering.dispatcher.CommandDispatcher<CC>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.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:
executeOnMemberin interfaceorg.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:
executeOnGroupin interfaceorg.wildfly.clustering.dispatcher.CommandDispatcher<CC>- Throws:
org.wildfly.clustering.dispatcher.CommandDispatcherException
-
-