Class CacheCommandFactory
- java.lang.Object
-
- org.infinispan.hibernate.cache.commons.util.CacheCommandFactory
-
- All Implemented Interfaces:
org.infinispan.commands.module.ModuleCommandFactory
public class CacheCommandFactory extends Object implements org.infinispan.commands.module.ModuleCommandFactory
Command factory- Since:
- 4.0
- Author:
- Galder ZamarreƱo
-
-
Constructor Summary
Constructors Constructor Description CacheCommandFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRegion(InfinispanBaseRegion region)Add region so that commands can be cleared on shutdown.voidclearRegions(Collection<? extends InfinispanBaseRegion> regions)Clear all regions from this command factory.org.infinispan.commands.ReplicableCommandfromStream(byte commandId)org.infinispan.commands.remote.CacheRpcCommandfromStream(byte commandId, org.infinispan.util.ByteString cacheName)Map<Byte,Class<? extends org.infinispan.commands.ReplicableCommand>>getModuleCommands()
-
-
-
Method Detail
-
addRegion
public void addRegion(InfinispanBaseRegion region)
Add region so that commands can be cleared on shutdown.- Parameters:
region- instance to keep track of
-
clearRegions
public void clearRegions(Collection<? extends InfinispanBaseRegion> regions)
Clear all regions from this command factory.- Parameters:
regions- collection of regions to clear
-
getModuleCommands
public Map<Byte,Class<? extends org.infinispan.commands.ReplicableCommand>> getModuleCommands()
- Specified by:
getModuleCommandsin interfaceorg.infinispan.commands.module.ModuleCommandFactory
-
fromStream
public org.infinispan.commands.remote.CacheRpcCommand fromStream(byte commandId, org.infinispan.util.ByteString cacheName)- Specified by:
fromStreamin interfaceorg.infinispan.commands.module.ModuleCommandFactory
-
fromStream
public org.infinispan.commands.ReplicableCommand fromStream(byte commandId)
- Specified by:
fromStreamin interfaceorg.infinispan.commands.module.ModuleCommandFactory
-
-