Class JChannelCommandDispatcher<CC,MC>
java.lang.Object
org.wildfly.clustering.server.jgroups.dispatcher.JChannelCommandDispatcher<CC,MC>
- Type Parameters:
CC- the command execution contextMC- the marshalling context
- All Implemented Interfaces:
AutoCloseable, org.wildfly.clustering.server.dispatcher.CommandDispatcher<ChannelGroupMember, CC>
public class JChannelCommandDispatcher<CC,MC>
extends Object
implements org.wildfly.clustering.server.dispatcher.CommandDispatcher<ChannelGroupMember, CC>
MessageDispatcher-based command dispatcher.
- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionJChannelCommandDispatcher(org.wildfly.clustering.server.jgroups.dispatcher.JChannelCommandDispatcher.Configuration<CC, MC> configuration) Creates a command dispatcher using the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<R, E extends Exception>
Map<ChannelGroupMember, CompletionStage<R>> dispatchToGroup(org.wildfly.clustering.server.dispatcher.Command<R, ? super CC, E> command, Set<ChannelGroupMember> excluding) <R, E extends Exception>
CompletionStage<R> dispatchToMember(org.wildfly.clustering.server.dispatcher.Command<R, ? super CC, E> command, ChannelGroupMember member) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.dispatcher.CommandDispatcher
dispatchToGroup
-
Constructor Details
-
JChannelCommandDispatcher
-
-
Method Details
-
getContext
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC>
-
dispatchToMember
public <R, E extends Exception> CompletionStage<R> dispatchToMember(org.wildfly.clustering.server.dispatcher.Command<R, ? super CC, E> command, ChannelGroupMember member) throws IOException - Specified by:
dispatchToMemberin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC> - Throws:
IOException
-
dispatchToGroup
public <R, E extends Exception> Map<ChannelGroupMember, CompletionStage<R>> dispatchToGroup(org.wildfly.clustering.server.dispatcher.Command<R, ? super CC, E> command, Set<ChannelGroupMember> excluding) throws IOException - Specified by:
dispatchToGroupin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcher<CC,MC> - Throws:
IOException
-