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.
|
<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.
|
C |
getContext()
Returns the context with which this dispatcher was created.
|
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 sentvoid close()
close in interface AutoCloseableCopyright © 2022 JBoss by Red Hat. All rights reserved.