C - command execution contextpublic class ChannelCommandDispatcher<C> extends Object implements CommandDispatcher<C>
| Constructor and Description |
|---|
ChannelCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher,
CommandMarshaller<C> marshaller,
Group<org.jgroups.Address> group,
long timeout,
CommandDispatcher<C> localDispatcher,
Runnable closeTask) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<R> Map<Node,CommandResponse<R>> |
executeOnCluster(Command<R,? super C> command,
Node... excludedNodes) |
<R> CommandResponse<R> |
executeOnNode(Command<R,? super C> command,
Node node) |
C |
getContext() |
<R> Future<R> |
submit(Node node,
org.jgroups.util.Buffer buffer,
org.jgroups.blocks.RequestOptions options) |
<R> Map<Node,Future<R>> |
submitOnCluster(Command<R,? super C> command,
Node... excludedNodes) |
<R> Future<R> |
submitOnNode(Command<R,? super C> command,
Node node) |
public ChannelCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher,
CommandMarshaller<C> marshaller,
Group<org.jgroups.Address> group,
long timeout,
CommandDispatcher<C> localDispatcher,
Runnable closeTask)
public C getContext()
getContext in interface CommandDispatcher<C>public void close()
close in interface AutoCloseableclose in interface CommandDispatcher<C>public <R> Map<Node,CommandResponse<R>> executeOnCluster(Command<R,? super C> command, Node... excludedNodes) throws CommandDispatcherException
executeOnCluster in interface CommandDispatcher<C>CommandDispatcherExceptionpublic <R> Map<Node,Future<R>> submitOnCluster(Command<R,? super C> command, Node... excludedNodes) throws CommandDispatcherException
submitOnCluster in interface CommandDispatcher<C>CommandDispatcherExceptionpublic <R> CommandResponse<R> executeOnNode(Command<R,? super C> command, Node node) throws CommandDispatcherException
executeOnNode in interface CommandDispatcher<C>CommandDispatcherExceptionpublic <R> Future<R> submitOnNode(Command<R,? super C> command, Node node) throws CommandDispatcherException
submitOnNode in interface CommandDispatcher<C>CommandDispatcherExceptionpublic <R> Future<R> submit(Node node, org.jgroups.util.Buffer buffer, org.jgroups.blocks.RequestOptions options) throws CommandDispatcherException
CommandDispatcherExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.