Class QuarkusInfinispanRegionFactory

java.lang.Object
org.infinispan.quarkus.hibernate.cache.QuarkusInfinispanRegionFactory
All Implemented Interfaces:
Serializable, org.hibernate.cache.spi.RegionFactory, org.hibernate.service.Service, org.hibernate.service.spi.Stoppable

public final class QuarkusInfinispanRegionFactory extends Object implements org.hibernate.cache.spi.RegionFactory
See Also:
  • Field Details

  • Constructor Details

    • QuarkusInfinispanRegionFactory

      public QuarkusInfinispanRegionFactory()
    • QuarkusInfinispanRegionFactory

      public QuarkusInfinispanRegionFactory(Supplier<Executor> cacheExecutorSupplier)
      Special constructor which allows to customize the Executor being used for internal cache maintenance operations
      Parameters:
      cacheExecutorSupplier -
  • Method Details

    • start

      public void start(org.hibernate.boot.spi.SessionFactoryOptions settings, Map configValues)
      Specified by:
      start in interface org.hibernate.cache.spi.RegionFactory
    • isMinimalPutsEnabledByDefault

      public boolean isMinimalPutsEnabledByDefault()
      Specified by:
      isMinimalPutsEnabledByDefault in interface org.hibernate.cache.spi.RegionFactory
    • getDefaultAccessType

      public org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
      Specified by:
      getDefaultAccessType in interface org.hibernate.cache.spi.RegionFactory
    • qualify

      public String qualify(String regionName)
      Specified by:
      qualify in interface org.hibernate.cache.spi.RegionFactory
    • createTransactionContext

      public org.hibernate.cache.spi.CacheTransactionSynchronization createTransactionContext(org.hibernate.engine.spi.SharedSessionContractImplementor session)
      Specified by:
      createTransactionContext in interface org.hibernate.cache.spi.RegionFactory
    • nextTimestamp

      public long nextTimestamp()
      Specified by:
      nextTimestamp in interface org.hibernate.cache.spi.RegionFactory
    • buildDomainDataRegion

      public org.hibernate.cache.spi.DomainDataRegion buildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext ctx)
      Specified by:
      buildDomainDataRegion in interface org.hibernate.cache.spi.RegionFactory
    • buildQueryResultsRegion

      public org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor)
      Specified by:
      buildQueryResultsRegion in interface org.hibernate.cache.spi.RegionFactory
    • buildTimestampsRegion

      public org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
      Specified by:
      buildTimestampsRegion in interface org.hibernate.cache.spi.RegionFactory
    • stop

      public void stop()
      Specified by:
      stop in interface org.hibernate.service.spi.Stoppable
    • getMemoryObjectCount

      public Optional<Long> getMemoryObjectCount(String region)
    • getExpirationMaxIdle

      public Optional<Duration> getExpirationMaxIdle(String region)