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
-
Constructor Summary
ConstructorsConstructorDescription -
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 java.lang.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
-
-
Method Details
-
run
public void run() -
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannelCommandDispatcherFactory
-
handle
- Specified by:
handlein interfaceorg.jgroups.blocks.RequestHandler- Throws:
Exception
-
handle
public void handle(org.jgroups.Message request, org.jgroups.blocks.Response response) throws Exception - Specified by:
handlein interfaceorg.jgroups.blocks.RequestHandler- Throws:
Exception
-
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>
-