public class CommandFactory extends Object implements ExtendedModuleCommandFactory
| Constructor and Description |
|---|
CommandFactory() |
| Modifier and Type | Method and Description |
|---|---|
ReplicableCommand |
fromStream(byte commandId,
Object[] args)
Construct and initialize a
ReplicableCommand based on the command
id and argument array passed in. |
CacheRpcCommand |
fromStream(byte commandId,
Object[] args,
String cacheName)
Construct and initialize a
CacheRpcCommand based on the command
id and argument array passed in. |
Map<Byte,Class<? extends ReplicableCommand>> |
getModuleCommands()
Provides a map of command IDs to command types of all the commands handled by the command factory instance.
|
public Map<Byte,Class<? extends ReplicableCommand>> getModuleCommands()
ModuleCommandFactorygetModuleCommands in interface ModuleCommandFactorypublic ReplicableCommand fromStream(byte commandId, Object[] args)
ModuleCommandFactoryReplicableCommand based on the command
id and argument array passed in.fromStream in interface ModuleCommandFactorycommandId - command id to constructargs - array of arguments with which to initialize the ReplicableCommandpublic CacheRpcCommand fromStream(byte commandId, Object[] args, String cacheName)
ExtendedModuleCommandFactoryCacheRpcCommand based on the command
id and argument array passed in.fromStream in interface ExtendedModuleCommandFactorycommandId - command id to constructargs - array of arguments with which to initialize the CacheRpcCommandcacheName - cache name at which command to be created is directedCacheRpcCommandCopyright © 2014 JBoss, a division of Red Hat. All rights reserved.