C - command contextpublic class LocalCommandDispatcher<C> extends Object implements CommandDispatcher<C>
CommandDispatcher implementation| Constructor and Description |
|---|
LocalCommandDispatcher(Node node,
C context) |
LocalCommandDispatcher(Node node,
C context,
ExecutorService executor) |
| 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> Map<Node,Future<R>> |
submitOnCluster(Command<R,? super C> command,
Node... excludedNodes) |
<R> Future<R> |
submitOnNode(Command<R,? super C> command,
Node node) |
public LocalCommandDispatcher(Node node, C context, ExecutorService executor)
public C getContext()
getContext in interface CommandDispatcher<C>public <R> CommandResponse<R> executeOnNode(Command<R,? super C> command, Node node)
executeOnNode in interface CommandDispatcher<C>public <R> Map<Node,CommandResponse<R>> executeOnCluster(Command<R,? super C> command, Node... excludedNodes)
executeOnCluster in interface CommandDispatcher<C>public <R> Future<R> submitOnNode(Command<R,? super C> command, Node node)
submitOnNode in interface CommandDispatcher<C>public <R> Map<Node,Future<R>> submitOnCluster(Command<R,? super C> command, Node... excludedNodes)
submitOnCluster in interface CommandDispatcher<C>public void close()
close in interface AutoCloseableclose in interface CommandDispatcher<C>Copyright © 2018 JBoss by Red Hat. All rights reserved.