public class CacheCommandFactory
extends java.lang.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(java.util.Collection<BaseRegion> regions)
Clear all regions from this command factory.
|
org.infinispan.commands.ReplicableCommand |
fromStream(byte commandId,
java.lang.Object[] args) |
org.infinispan.commands.remote.CacheRpcCommand |
fromStream(byte commandId,
java.lang.Object[] args,
java.lang.String cacheName) |
java.util.Map<java.lang.Byte,java.lang.Class<? extends org.infinispan.commands.ReplicableCommand>> |
getModuleCommands() |
public void addRegion(BaseRegion region)
region
- instance to keep track ofpublic void clearRegions(java.util.Collection<BaseRegion> regions)
regions
- collection of regions to clearpublic java.util.Map<java.lang.Byte,java.lang.Class<? extends org.infinispan.commands.ReplicableCommand>> getModuleCommands()
getModuleCommands
in interface org.infinispan.commands.module.ModuleCommandFactory
public org.infinispan.commands.remote.CacheRpcCommand fromStream(byte commandId, java.lang.Object[] args, java.lang.String cacheName)
fromStream
in interface org.infinispan.commands.module.ModuleCommandFactory
public org.infinispan.commands.ReplicableCommand fromStream(byte commandId, java.lang.Object[] args)
fromStream
in interface org.infinispan.commands.module.ModuleCommandFactory
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.