Class ConfluenceRegionCacheFactory
java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
org.hibernate.cache.spi.support.RegionFactoryTemplate
com.atlassian.confluence.impl.hibernate.cache.ConfluenceRegionCacheFactory
- All Implemented Interfaces:
Serializable
,org.hibernate.cache.spi.RegionFactory
,org.hibernate.service.Service
,org.hibernate.service.spi.Stoppable
public final class ConfluenceRegionCacheFactory
extends org.hibernate.cache.spi.support.RegionFactoryTemplate
A simple (too simple?) implementation of Hibernate's
RegionFactory
, which provides
the Hibernate L:2 cache backed by AtlassianCache.- Since:
- 10.0
- See Also:
-
Field Summary
Fields inherited from class org.hibernate.cache.spi.AbstractRegionFactory
LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES, LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES
Fields inherited from interface org.hibernate.cache.spi.RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.hibernate.cache.spi.support.DomainDataStorageAccess
createDomainDataStorageAccess
(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext) protected org.hibernate.cache.spi.support.StorageAccess
createQueryResultsRegionStorageAccess
(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) protected org.hibernate.cache.spi.support.StorageAccess
createTimestampsRegionStorageAccess
(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) protected void
prepareForUse
(org.hibernate.boot.spi.SessionFactoryOptions settings, Map configValues) protected void
Methods inherited from class org.hibernate.cache.spi.support.RegionFactoryTemplate
buildDomainDataRegion, buildQueryResultsRegion, buildTimestampsRegion, getImplicitCacheKeysFactory
Methods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, isStarted, nextTimestamp, qualify, start, stop, verifiedStartStatus, verifyStarted
-
Constructor Details
-
ConfluenceRegionCacheFactory
public ConfluenceRegionCacheFactory(com.atlassian.cache.CacheFactory cacheFactory)
-
-
Method Details
-
createDomainDataStorageAccess
protected org.hibernate.cache.spi.support.DomainDataStorageAccess createDomainDataStorageAccess(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext) - Overrides:
createDomainDataStorageAccess
in classorg.hibernate.cache.spi.support.RegionFactoryTemplate
-
createQueryResultsRegionStorageAccess
protected org.hibernate.cache.spi.support.StorageAccess createQueryResultsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) - Specified by:
createQueryResultsRegionStorageAccess
in classorg.hibernate.cache.spi.support.RegionFactoryTemplate
-
createTimestampsRegionStorageAccess
protected org.hibernate.cache.spi.support.StorageAccess createTimestampsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) - Specified by:
createTimestampsRegionStorageAccess
in classorg.hibernate.cache.spi.support.RegionFactoryTemplate
-
prepareForUse
protected void prepareForUse(org.hibernate.boot.spi.SessionFactoryOptions settings, Map configValues) - Specified by:
prepareForUse
in classorg.hibernate.cache.spi.AbstractRegionFactory
-
releaseFromUse
protected void releaseFromUse()- Specified by:
releaseFromUse
in classorg.hibernate.cache.spi.AbstractRegionFactory
-