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 Details

    • CacheCommandFactory

      public CacheCommandFactory()
  • Method Details

    • 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:
      getModuleCommands in interface org.infinispan.commands.module.ModuleCommandFactory
    • fromStream

      public org.infinispan.commands.remote.CacheRpcCommand fromStream(byte commandId, org.infinispan.util.ByteString cacheName)
      Specified by:
      fromStream in interface org.infinispan.commands.module.ModuleCommandFactory
    • fromStream

      public org.infinispan.commands.ReplicableCommand fromStream(byte commandId)
      Specified by:
      fromStream in interface org.infinispan.commands.module.ModuleCommandFactory