C - the command context typepublic interface CommandDispatcher<C> extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes any resources used by this dispatcher.
|
default <R> Map<Node,CommandResponse<R>> |
executeOnCluster(Command<R,? super C> command,
Node... excludedNodes)
Deprecated.
Replaced by
executeOnGroup(Command, Node...). |
<R> Map<Node,CompletionStage<R>> |
executeOnGroup(Command<R,? super C> command,
Node... excludedMembers)
Executes the specified command on all members of the group, optionally excluding some members.
|
<R> CompletionStage<R> |
executeOnMember(Command<R,? super C> command,
Node member)
Executes the specified command on the specified group member.
|
default <R> CommandResponse<R> |
executeOnNode(Command<R,? super C> command,
Node node)
Deprecated.
Replaced by
executeOnMember(Command, Node). |
C |
getContext()
Returns the context with which this dispatcher was created.
|
default <R> Map<Node,Future<R>> |
submitOnCluster(Command<R,? super C> command,
Node... excludedNodes)
Deprecated.
Replaced by
executeOnGroup(Command, Node...). |
default <R> Future<R> |
submitOnNode(Command<R,? super C> command,
Node node)
Deprecated.
Replaced by
executeOnMember(Command, Node). |
C getContext()
<R> CompletionStage<R> executeOnMember(Command<R,? super C> command, Node member) throws CommandDispatcherException
CancellationException.R - the command execution return typecommand - the command to executemember - the group member on which to execute the commandCommandDispatcherException - if the command could not be sent<R> Map<Node,CompletionStage<R>> executeOnGroup(Command<R,? super C> command, Node... excludedMembers) throws CommandDispatcherException
CancellationException.R - the command execution return typecommand - the command to executeexcludedMembers - the members to be excluded from group command executionCommandDispatcherException - if the command could not be sent@Deprecated default <R> CommandResponse<R> executeOnNode(Command<R,? super C> command, Node node) throws CommandDispatcherException
executeOnMember(Command, Node).R - the return value typecommand - the command to executenode - the node to execute the command onCommandDispatcherException - if the command could not be sent@Deprecated default <R> Map<Node,CommandResponse<R>> executeOnCluster(Command<R,? super C> command, Node... excludedNodes) throws CommandDispatcherException
executeOnGroup(Command, Node...).R - the return value typecommand - the command to executeexcludedNodes - the set of nodes to excludeCommandDispatcherException - if the command could not be broadcast@Deprecated default <R> Future<R> submitOnNode(Command<R,? super C> command, Node node) throws CommandDispatcherException
executeOnMember(Command, Node).R - the return value typecommand - the command to executenode - the node to execute the command onCommandDispatcherException - if the command could not be sent@Deprecated default <R> Map<Node,Future<R>> submitOnCluster(Command<R,? super C> command, Node... excludedNodes) throws CommandDispatcherException
executeOnGroup(Command, Node...).R - the return value typecommand - the command to executeexcludedNodes - the set of nodes to excludeCommandDispatcherException - if the command could not be broadcastvoid close()
close in interface AutoCloseableCopyright © 2019 JBoss by Red Hat. All rights reserved.