public class HibernateJvmVCacheRegionFactory
extends org.hibernate.cache.ehcache.EhCacheRegionFactory
EhCacheRegionFactory but shares an instance of EhCache CacheManager with Atlassian CacheManager.
Since Hibernate EhCacheRegionFactory interacts with EhCache CacheManager directly, Confluence must
apply default configuration set in ehcache-settings-defaults.conf and/or cache-settings-overrides.properties for each cache region created here.| Modifier and Type | Field and Description |
|---|---|
protected org.hibernate.cache.ehcache.internal.strategy.EhcacheAccessStrategyFactory |
accessStrategyFactory |
protected net.sf.ehcache.CacheManager |
manager |
protected org.hibernate.cache.ehcache.management.impl.ProviderMBeanRegistrationHelper |
mbeanRegistrationHelper |
static String |
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME |
protected org.hibernate.boot.spi.SessionFactoryOptions |
settings |
| Constructor and Description |
|---|
HibernateJvmVCacheRegionFactory(net.sf.ehcache.CacheManager cacheManager,
com.atlassian.cache.CacheManager atlassianCacheManager,
com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.cache.spi.CollectionRegion |
buildCollectionRegion(String regionName,
Properties configValues,
org.hibernate.cache.spi.CacheDataDescription metadata) |
org.hibernate.cache.spi.EntityRegion |
buildEntityRegion(String regionName,
Properties properties,
org.hibernate.cache.spi.CacheDataDescription metadata) |
org.hibernate.cache.spi.NaturalIdRegion |
buildNaturalIdRegion(String regionName,
Properties properties,
org.hibernate.cache.spi.CacheDataDescription metadata) |
org.hibernate.cache.spi.QueryResultsRegion |
buildQueryResultsRegion(String regionName,
Properties properties) |
org.hibernate.cache.spi.TimestampsRegion |
buildTimestampsRegion(String regionName,
Properties properties) |
protected URL |
loadResource(String arg0) |
void |
stop() |
public static final String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
protected final org.hibernate.cache.ehcache.management.impl.ProviderMBeanRegistrationHelper mbeanRegistrationHelper
protected volatile net.sf.ehcache.CacheManager manager
protected org.hibernate.boot.spi.SessionFactoryOptions settings
protected final org.hibernate.cache.ehcache.internal.strategy.EhcacheAccessStrategyFactory accessStrategyFactory
public HibernateJvmVCacheRegionFactory(net.sf.ehcache.CacheManager cacheManager,
com.atlassian.cache.CacheManager atlassianCacheManager,
com.atlassian.cache.CacheSettingsDefaultsProvider cacheSettingsDefaultsProvider)
public void stop()
stop in interface org.hibernate.cache.spi.RegionFactorystop in class org.hibernate.cache.ehcache.EhCacheRegionFactorypublic org.hibernate.cache.spi.EntityRegion buildEntityRegion(String regionName, Properties properties, org.hibernate.cache.spi.CacheDataDescription metadata) throws org.hibernate.cache.CacheException
buildEntityRegion in interface org.hibernate.cache.spi.RegionFactorybuildEntityRegion in class org.hibernate.cache.ehcache.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.CollectionRegion buildCollectionRegion(String regionName, Properties configValues, org.hibernate.cache.spi.CacheDataDescription metadata) throws org.hibernate.cache.CacheException
buildCollectionRegion in interface org.hibernate.cache.spi.RegionFactorybuildCollectionRegion in class org.hibernate.cache.ehcache.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws org.hibernate.cache.CacheException
buildQueryResultsRegion in interface org.hibernate.cache.spi.RegionFactorybuildQueryResultsRegion in class org.hibernate.cache.ehcache.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws org.hibernate.cache.CacheException
buildTimestampsRegion in interface org.hibernate.cache.spi.RegionFactorybuildTimestampsRegion in class org.hibernate.cache.ehcache.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionpublic org.hibernate.cache.spi.NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, org.hibernate.cache.spi.CacheDataDescription metadata) throws org.hibernate.cache.CacheException
buildNaturalIdRegion in interface org.hibernate.cache.spi.RegionFactorybuildNaturalIdRegion in class org.hibernate.cache.ehcache.EhCacheRegionFactoryorg.hibernate.cache.CacheExceptionCopyright © 2003–2022 Atlassian. All rights reserved.