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 Summary
FieldsFields inherited from interface org.hibernate.cache.spi.RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME -
Constructor Summary
ConstructorsConstructorDescriptionQuarkusInfinispanRegionFactory(Supplier<Executor> cacheExecutorSupplier) Special constructor which allows to customize the Executor being used for internal cache maintenance operations -
Method Summary
Modifier and TypeMethodDescriptionorg.hibernate.cache.spi.DomainDataRegionbuildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext ctx) org.hibernate.cache.spi.QueryResultsRegionbuildQueryResultsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor) org.hibernate.cache.spi.TimestampsRegionbuildTimestampsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) org.hibernate.cache.spi.CacheTransactionSynchronizationcreateTransactionContext(org.hibernate.engine.spi.SharedSessionContractImplementor session) org.hibernate.cache.spi.access.AccessTypegetExpirationMaxIdle(String region) getMemoryObjectCount(String region) booleanlongvoidvoidstop()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.spi.RegionFactory
getTimeout
-
Field Details
-
PREFIX
- See Also:
-
OBJECT_COUNT_SUFFIX
- See Also:
-
MAX_IDLE_SUFFIX
- See Also:
-
-
Constructor Details
-
QuarkusInfinispanRegionFactory
public QuarkusInfinispanRegionFactory() -
QuarkusInfinispanRegionFactory
Special constructor which allows to customize the Executor being used for internal cache maintenance operations- Parameters:
cacheExecutorSupplier-
-
-
Method Details
-
start
- Specified by:
startin interfaceorg.hibernate.cache.spi.RegionFactory
-
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()- Specified by:
isMinimalPutsEnabledByDefaultin interfaceorg.hibernate.cache.spi.RegionFactory
-
getDefaultAccessType
public org.hibernate.cache.spi.access.AccessType getDefaultAccessType()- Specified by:
getDefaultAccessTypein interfaceorg.hibernate.cache.spi.RegionFactory
-
qualify
- Specified by:
qualifyin interfaceorg.hibernate.cache.spi.RegionFactory
-
nextTimestamp
public long nextTimestamp()- Specified by:
nextTimestampin interfaceorg.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:
buildDomainDataRegionin interfaceorg.hibernate.cache.spi.RegionFactory
-
buildQueryResultsRegion
public org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactoryImplementor) - Specified by:
buildQueryResultsRegionin interfaceorg.hibernate.cache.spi.RegionFactory
-
buildTimestampsRegion
public org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) - Specified by:
buildTimestampsRegionin interfaceorg.hibernate.cache.spi.RegionFactory
-
stop
public void stop()- Specified by:
stopin interfaceorg.hibernate.service.spi.Stoppable
-
getMemoryObjectCount
-
getExpirationMaxIdle
-