CC - command execution contextpublic class ChannelCommandDispatcher<CC,MC> extends Object implements org.wildfly.clustering.dispatcher.CommandDispatcher<CC>
| Constructor and Description |
|---|
ChannelCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher,
CommandMarshaller<CC> marshaller,
MC context,
org.wildfly.clustering.spi.group.Group<org.jgroups.Address> group,
Duration timeout,
org.wildfly.clustering.dispatcher.CommandDispatcher<CC> localDispatcher,
Runnable closeTask) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<R> Map<org.wildfly.clustering.group.Node,CompletionStage<R>> |
executeOnGroup(org.wildfly.clustering.dispatcher.Command<R,? super CC> command,
org.wildfly.clustering.group.Node... excludedMembers) |
<R> CompletionStage<R> |
executeOnMember(org.wildfly.clustering.dispatcher.Command<R,? super CC> command,
org.wildfly.clustering.group.Node member) |
CC |
getContext() |
public ChannelCommandDispatcher(org.jgroups.blocks.MessageDispatcher dispatcher,
CommandMarshaller<CC> marshaller,
MC context,
org.wildfly.clustering.spi.group.Group<org.jgroups.Address> group,
Duration timeout,
org.wildfly.clustering.dispatcher.CommandDispatcher<CC> localDispatcher,
Runnable closeTask)
public CC getContext()
getContext in interface org.wildfly.clustering.dispatcher.CommandDispatcher<CC>public void close()
close in interface AutoCloseableclose in interface org.wildfly.clustering.dispatcher.CommandDispatcher<CC>public <R> CompletionStage<R> executeOnMember(org.wildfly.clustering.dispatcher.Command<R,? super CC> command, org.wildfly.clustering.group.Node member) throws org.wildfly.clustering.dispatcher.CommandDispatcherException
executeOnMember in interface org.wildfly.clustering.dispatcher.CommandDispatcher<CC>org.wildfly.clustering.dispatcher.CommandDispatcherExceptionpublic <R> Map<org.wildfly.clustering.group.Node,CompletionStage<R>> executeOnGroup(org.wildfly.clustering.dispatcher.Command<R,? super CC> command, org.wildfly.clustering.group.Node... excludedMembers) throws org.wildfly.clustering.dispatcher.CommandDispatcherException
executeOnGroup in interface org.wildfly.clustering.dispatcher.CommandDispatcher<CC>org.wildfly.clustering.dispatcher.CommandDispatcherExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.