public class CacheCommandFactory extends Object implements ExtendedModuleCommandFactory
| Constructor and Description |
|---|
CacheCommandFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegion(String regionName,
BaseRegion region) |
void |
clearRegions(List<String> regionNames) |
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 void addRegion(String regionName, BaseRegion region)
public Map<Byte,Class<? extends ReplicableCommand>> getModuleCommands()
ModuleCommandFactorygetModuleCommands in interface ModuleCommandFactorypublic 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 directedCacheRpcCommandpublic 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 ReplicableCommandCopyright © 2012 JBoss by Red Hat. All Rights Reserved.