public class ChannelCommandDispatcherFactory extends Object implements AutoCloseableCommandDispatcherFactory, org.jgroups.blocks.RequestHandler, Group<org.jgroups.Address>, org.jgroups.MembershipListener, Runnable, Function<GroupListener,ExecutorService>
MessageDispatcher based CommandDispatcherFactory.
This factory can produce multiple CommandDispatcher instances,
all of which will share the same MessageDispatcher instance.Group.Listener| Constructor and Description |
|---|
ChannelCommandDispatcherFactory(ChannelCommandDispatcherFactoryConfiguration config) |
| Modifier and Type | Method and Description |
|---|---|
ExecutorService |
apply(GroupListener listener) |
void |
block() |
void |
close() |
<C> CommandDispatcher<C> |
createCommandDispatcher(Object id,
C commandContext,
ClassLoader loader) |
Node |
createNode(org.jgroups.Address address) |
org.jgroups.Address |
getAddress(Node node) |
Group |
getGroup() |
Node |
getLocalMember() |
Membership |
getMembership() |
String |
getName() |
Object |
handle(org.jgroups.Message request) |
void |
handle(org.jgroups.Message request,
org.jgroups.blocks.Response response) |
boolean |
isSingleton() |
Registration |
register(GroupListener listener) |
void |
removeListener(Group.Listener listener)
Deprecated.
|
void |
run() |
void |
suspect(org.jgroups.Address member) |
void |
unblock() |
void |
viewAccepted(org.jgroups.View view) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateCommandDispatcheraddListener, getCoordinatorNode, getLocalNode, getNodes, isCoordinator, isLocalpublic ChannelCommandDispatcherFactory(ChannelCommandDispatcherFactoryConfiguration config)
public void close()
close in interface AutoCloseableclose in interface AutoCloseableCommandDispatcherFactorypublic Object handle(org.jgroups.Message request) throws Exception
handle in interface org.jgroups.blocks.RequestHandlerExceptionpublic void handle(org.jgroups.Message request,
org.jgroups.blocks.Response response)
throws Exception
handle in interface org.jgroups.blocks.RequestHandlerExceptionpublic Group getGroup()
getGroup in interface CommandDispatcherFactorypublic <C> CommandDispatcher<C> createCommandDispatcher(Object id, C commandContext, ClassLoader loader)
public Registration register(GroupListener listener)
register in interface Registrar<GroupListener>public ExecutorService apply(GroupListener listener)
apply in interface Function<GroupListener,ExecutorService>@Deprecated public void removeListener(Group.Listener listener)
removeListener in interface Grouppublic Membership getMembership()
getMembership in interface Grouppublic Node getLocalMember()
getLocalMember in interface Grouppublic boolean isSingleton()
isSingleton in interface Grouppublic Node createNode(org.jgroups.Address address)
createNode in interface NodeFactory<org.jgroups.Address>public org.jgroups.Address getAddress(Node node)
public void viewAccepted(org.jgroups.View view)
viewAccepted in interface org.jgroups.MembershipListenerpublic void suspect(org.jgroups.Address member)
suspect in interface org.jgroups.MembershipListenerpublic void block()
block in interface org.jgroups.MembershipListenerpublic void unblock()
unblock in interface org.jgroups.MembershipListenerCopyright © 2020 JBoss by Red Hat. All rights reserved.