Class EmbeddedCacheManagerCommandDispatcherFactory<A extends Comparable<A>,M extends GroupMember<A>>
java.lang.Object
org.wildfly.clustering.server.infinispan.dispatcher.EmbeddedCacheManagerCommandDispatcherFactory<A,M>
- Type Parameters:
A- the address type for group membersM- the group member type
- All Implemented Interfaces:
CommandDispatcherFactory<CacheContainerGroupMember>,GroupCommandDispatcherFactory<org.infinispan.remoting.transport.Address,,CacheContainerGroupMember> CacheContainerCommandDispatcherFactory
public class EmbeddedCacheManagerCommandDispatcherFactory<A extends Comparable<A>,M extends GroupMember<A>>
extends Object
implements CacheContainerCommandDispatcherFactory
A factory for creating a
CommandDispatcher for dispatching commands to embedded cache manager group members.- Author:
- Paul Ferraro
-
Constructor Summary
ConstructorsConstructorDescriptionEmbeddedCacheManagerCommandDispatcherFactory(EmbeddedCacheManagerCommandDispatcherFactoryConfiguration<A, M> configuration) -
Method Summary
Modifier and TypeMethodDescriptioncreateCommandDispatcher(Object id, C context, ClassLoader loader) Creates a new command dispatcher using the specified identifier and context whose marshaller will be configured from the specified class loader.getGroup()Returns the group upon which the this command dispatcher operates.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
-
EmbeddedCacheManagerCommandDispatcherFactory
public EmbeddedCacheManagerCommandDispatcherFactory(EmbeddedCacheManagerCommandDispatcherFactoryConfiguration<A, M> configuration)
-
-
Method Details
-
getGroup
Description copied from interface:CommandDispatcherFactoryReturns the group upon which the this command dispatcher operates.- Specified by:
getGroupin interfaceCacheContainerCommandDispatcherFactory- Specified by:
getGroupin interfaceCommandDispatcherFactory<A extends Comparable<A>>- Specified by:
getGroupin interfaceGroupCommandDispatcherFactory<A extends Comparable<A>,M extends GroupMember<A>> - Returns:
- a group
-
createCommandDispatcher
public <C> CommandDispatcher<CacheContainerGroupMember,C> createCommandDispatcher(Object id, C context, ClassLoader loader) Description copied from interface:CommandDispatcherFactoryCreates a new command dispatcher using the specified identifier and context whose marshaller will be configured from the specified class loader. The resultingCommandDispatcherwill communicate with those dispatchers within the group sharing the same identifier.- Specified by:
createCommandDispatcherin interfaceCommandDispatcherFactory<A extends Comparable<A>>- Parameters:
id- a unique identifier for this dispatchercontext- the context used for executing commandsloader- the class loader used to load commands to be dispatched.- Returns:
- a new command dispatcher
-