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()
ModuleCommandFactory
getModuleCommands
in interface ModuleCommandFactory
public CacheRpcCommand fromStream(byte commandId, Object[] args, String cacheName)
ExtendedModuleCommandFactory
CacheRpcCommand
based on the command
id and argument array passed in.fromStream
in interface ExtendedModuleCommandFactory
commandId
- command id to constructargs
- array of arguments with which to initialize the CacheRpcCommand
cacheName
- cache name at which command to be created is directedCacheRpcCommand
public ReplicableCommand fromStream(byte commandId, Object[] args)
ModuleCommandFactory
ReplicableCommand
based on the command
id and argument array passed in.fromStream
in interface ModuleCommandFactory
commandId
- command id to constructargs
- array of arguments with which to initialize the ReplicableCommandCopyright © 2012 JBoss by Red Hat. All Rights Reserved.