Interface CommandDispatcherFactory<M extends GroupMember>
- Type Parameters:
M- the member type
- All Known Subinterfaces:
CacheContainerCommandDispatcherFactory,ChannelCommandDispatcherFactory,GroupCommandDispatcherFactory<A,,M> LocalCommandDispatcherFactory
- All Known Implementing Classes:
EmbeddedCacheManagerCommandDispatcherFactory,JChannelCommandDispatcherFactory
public interface CommandDispatcherFactory<M extends GroupMember>
Factory for creating a command dispatcher.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault <C> CommandDispatcher<M, C> createCommandDispatcher(Object id, C context) Creates a new command dispatcher using the specified identifier and context.<C> CommandDispatcher<M, C> createCommandDispatcher(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.
-
Method Details
-
getGroup
Returns the group upon which the this command dispatcher operates.- Returns:
- a group
-
createCommandDispatcher
Creates a new command dispatcher using the specified identifier and context. The resultingCommandDispatcherwill communicate with those dispatchers within the group sharing the same identifier.- Parameters:
id- a unique identifier for this dispatchercontext- the context used for executing commands- Returns:
- a new command dispatcher
-
createCommandDispatcher
Creates 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.- 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
-