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 -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRegion(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)
-
Constructor Details
-
CacheCommandFactory
public CacheCommandFactory()
-
-
Method Details
-
addRegion
Add region so that commands can be cleared on shutdown.- Parameters:
region- instance to keep track of
-
clearRegions
Clear all regions from this command factory.- Parameters:
regions- collection of regions to clear
-
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
-