public class ManagedCommandDispatcher<C> extends Object implements CommandDispatcher<C>
close() logic.| 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 C getContext()
getContext in interface CommandDispatcher<C>public <R> CommandResponse<R> executeOnNode(Command<R,? super C> command, Node node) throws CommandDispatcherException
executeOnNode in interface CommandDispatcher<C>CommandDispatcherExceptionpublic <R> Map<Node,CommandResponse<R>> executeOnCluster(Command<R,? super C> command, Node... excludedNodes) throws CommandDispatcherException
executeOnCluster 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> Map<Node,Future<R>> submitOnCluster(Command<R,? super C> command, Node... excludedNodes) throws CommandDispatcherException
submitOnCluster in interface CommandDispatcher<C>CommandDispatcherExceptionpublic void close()
close in interface AutoCloseableclose in interface CommandDispatcher<C>Copyright © 2018 JBoss by Red Hat. All rights reserved.