public class CacheCommandFactory extends Object implements org.infinispan.commands.module.ExtendedModuleCommandFactory
| Constructor and Description |
|---|
CacheCommandFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
addRegion(String regionName,
BaseRegion region)
Add region so that commands can be cleared on shutdown.
|
void |
clearRegions(List<String> regionNames)
Clear all regions from this command factory.
|
org.infinispan.commands.ReplicableCommand |
fromStream(byte commandId,
Object[] args) |
org.infinispan.commands.remote.CacheRpcCommand |
fromStream(byte commandId,
Object[] args,
String cacheName) |
Map<Byte,Class<? extends org.infinispan.commands.ReplicableCommand>> |
getModuleCommands() |
public void addRegion(String regionName, BaseRegion region)
regionName - name of the regionregion - instance to keep track ofpublic void clearRegions(List<String> regionNames)
regionNames - collection of regions to clearpublic Map<Byte,Class<? extends org.infinispan.commands.ReplicableCommand>> getModuleCommands()
getModuleCommands in interface org.infinispan.commands.module.ModuleCommandFactorypublic org.infinispan.commands.remote.CacheRpcCommand fromStream(byte commandId,
Object[] args,
String cacheName)
fromStream in interface org.infinispan.commands.module.ExtendedModuleCommandFactorypublic org.infinispan.commands.ReplicableCommand fromStream(byte commandId,
Object[] args)
fromStream in interface org.infinispan.commands.module.ModuleCommandFactoryCopyright © 2001-2015 Red Hat, Inc. All Rights Reserved.