Class JChannelCommandDispatcherFactory
java.lang.Object
org.wildfly.clustering.server.jgroups.dispatcher.JChannelCommandDispatcherFactory
- All Implemented Interfaces:
AutoCloseable, Runnable, org.jgroups.blocks.RequestHandler, org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<ChannelGroupMember>, org.wildfly.clustering.server.group.GroupCommandDispatcherFactory<org.jgroups.Address, ChannelGroupMember>, ChannelCommandDispatcherFactory
public class JChannelCommandDispatcherFactory
extends Object
implements ChannelCommandDispatcherFactory, org.jgroups.blocks.RequestHandler, Runnable
MessageDispatcher based CommandDispatcherFactory.
This factory can produce multiple CommandDispatcher instances,
all of which will share the same MessageDispatcher instance.- Author:
- Paul Ferraro
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceConfiguration for aJChannelCommandDispatcherFactory. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a channel-based command dispatcher factory using the specified configuration. -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()<C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<ChannelGroupMember, C> createCommandDispatcher(Object id, C commandContext, ClassLoader loader) getGroup()handle(org.jgroups.Message request) voidhandle(org.jgroups.Message request, org.jgroups.blocks.Response response) voidrun()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.wildfly.clustering.server.dispatcher.CommandDispatcherFactory
createCommandDispatcher
-
Constructor Details
-
JChannelCommandDispatcherFactory
Creates a channel-based command dispatcher factory using the specified configuration.- Parameters:
config- the configuration of the command dispatcher factory.
-
-
Method Details
-
run
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannelCommandDispatcherFactory
-
handle
-
handle
-
getGroup
- Specified by:
getGroupin interfaceChannelCommandDispatcherFactory- Specified by:
getGroupin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<ChannelGroupMember>- Specified by:
getGroupin interfaceorg.wildfly.clustering.server.group.GroupCommandDispatcherFactory<org.jgroups.Address, ChannelGroupMember>
-
createCommandDispatcher
public <C> org.wildfly.clustering.server.dispatcher.CommandDispatcher<ChannelGroupMember, C> createCommandDispatcher(Object id, C commandContext, ClassLoader loader) - Specified by:
createCommandDispatcherin interfaceorg.wildfly.clustering.server.dispatcher.CommandDispatcherFactory<ChannelGroupMember>
-