Class QuarkusInfinispanRegionFactory

  • All Implemented Interfaces:
    java.io.Serializable, org.hibernate.cache.spi.RegionFactory, org.hibernate.service.Service, org.hibernate.service.spi.Stoppable

    public final class QuarkusInfinispanRegionFactory
    extends java.lang.Object
    implements org.hibernate.cache.spi.RegionFactory
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String MAX_IDLE_SUFFIX  
      static java.lang.String OBJECT_COUNT_SUFFIX  
      static java.lang.String PREFIX  
      • Fields inherited from interface org.hibernate.cache.spi.RegionFactory

        DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
    • Constructor Summary

      Constructors 
      Constructor Description
      QuarkusInfinispanRegionFactory()  
      QuarkusInfinispanRegionFactory​(java.util.function.Supplier<java.util.concurrent.Executor> cacheExecutorSupplier)
      Special constructor which allows to customize the Executor being used for internal cache maintenance operations
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.hibernate.cache.spi.DomainDataRegion buildDomainDataRegion​(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext ctx)  
      org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion​(java.lang.String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor)  
      org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion​(java.lang.String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)  
      org.hibernate.cache.spi.CacheTransactionSynchronization createTransactionContext​(org.hibernate.engine.spi.SharedSessionContractImplementor session)  
      org.hibernate.cache.spi.access.AccessType getDefaultAccessType()  
      java.util.Optional<java.time.Duration> getExpirationMaxIdle​(java.lang.String region)  
      java.util.Optional<java.lang.Long> getMemoryObjectCount​(java.lang.String region)  
      boolean isMinimalPutsEnabledByDefault()  
      long nextTimestamp()  
      java.lang.String qualify​(java.lang.String regionName)  
      void start​(org.hibernate.boot.spi.SessionFactoryOptions settings, java.util.Map configValues)  
      void stop()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.hibernate.cache.spi.RegionFactory

        getTimeout
    • Constructor Detail

      • QuarkusInfinispanRegionFactory

        public QuarkusInfinispanRegionFactory()
      • QuarkusInfinispanRegionFactory

        public QuarkusInfinispanRegionFactory​(java.util.function.Supplier<java.util.concurrent.Executor> cacheExecutorSupplier)
        Special constructor which allows to customize the Executor being used for internal cache maintenance operations
        Parameters:
        cacheExecutorSupplier -
    • Method Detail

      • start

        public void start​(org.hibernate.boot.spi.SessionFactoryOptions settings,
                          java.util.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 java.lang.String qualify​(java.lang.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​(java.lang.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​(java.lang.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 java.util.Optional<java.lang.Long> getMemoryObjectCount​(java.lang.String region)
      • getExpirationMaxIdle

        public java.util.Optional<java.time.Duration> getExpirationMaxIdle​(java.lang.String region)