Class LocalCommandDispatcher<C>
- java.lang.Object
-
- org.wildfly.clustering.server.infinispan.dispatcher.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-clusteredCommandDispatcherimplementation- Author:
- Paul Ferraro
-
-
Constructor Summary
Constructors Constructor Description LocalCommandDispatcher(org.wildfly.clustering.group.Node node, C context)
-
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 C> command, org.wildfly.clustering.group.Node... excludedMembers)<R> CompletionStage<R>executeOnMember(org.wildfly.clustering.dispatcher.Command<R,? super C> command, org.wildfly.clustering.group.Node member)CgetContext()
-
-
-
Constructor Detail
-
LocalCommandDispatcher
public LocalCommandDispatcher(org.wildfly.clustering.group.Node node, C context)
-
-
Method Detail
-
getContext
public C getContext()
- Specified by:
getContextin interfaceorg.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:
executeOnMemberin interfaceorg.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:
executeOnGroupin interfaceorg.wildfly.clustering.dispatcher.CommandDispatcher<C>- Throws:
org.wildfly.clustering.dispatcher.CommandDispatcherException
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.dispatcher.CommandDispatcher<C>
-
-