Class HibernateJvmVCacheRegionFactory
- java.lang.Object
-
- org.hibernate.cache.spi.AbstractRegionFactory
-
- org.hibernate.cache.spi.support.RegionFactoryTemplate
-
- org.hibernate.cache.ehcache.internal.EhcacheRegionFactory
-
- com.atlassian.confluence.impl.hibernate.HibernateJvmVCacheRegionFactory
-
- All Implemented Interfaces:
Serializable
,org.hibernate.cache.spi.RegionFactory
,org.hibernate.service.Service
,org.hibernate.service.spi.Stoppable
public class HibernateJvmVCacheRegionFactory extends org.hibernate.cache.ehcache.internal.EhcacheRegionFactory
Basically anEhcacheRegionFactory
but shares an instance of EhCacheCacheManager
with AtlassianCacheManager
. Since HibernateEhcacheRegionFactory
interacts with EhCacheCacheManager
directly, Confluence must apply default configuration set in ehcache-settings-defaults.conf and/or cache-settings-overrides.properties for each cache region created here.- Since:
- 6.14
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HibernateJvmVCacheRegionFactory(com.atlassian.cache.CacheManager atlassianCacheManager, com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.cache.spi.QueryResultsRegion
buildQueryResultsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
org.hibernate.cache.spi.TimestampsRegion
buildTimestampsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
-
Methods inherited from class org.hibernate.cache.ehcache.internal.EhcacheRegionFactory
buildDomainDataRegion, cacheExists, createCache, createDomainDataStorageAccess, createQueryResultsRegionStorageAccess, createTimestampsRegionStorageAccess, defaultRegionName, getCacheManager, getImplicitCacheKeysFactory, getOrCreateCache, getTimeout, isStarted, loadResource, prepareForUse, releaseFromUse, resolveCacheManager, useNormalCacheManager
-
-
-
-
Method Detail
-
buildQueryResultsRegion
public org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
- Specified by:
buildQueryResultsRegion
in interfaceorg.hibernate.cache.spi.RegionFactory
- Overrides:
buildQueryResultsRegion
in classorg.hibernate.cache.spi.support.RegionFactoryTemplate
-
buildTimestampsRegion
public org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
- Specified by:
buildTimestampsRegion
in interfaceorg.hibernate.cache.spi.RegionFactory
- Overrides:
buildTimestampsRegion
in classorg.hibernate.cache.spi.support.RegionFactoryTemplate
-
-