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