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.RegionFactory
stop
in class org.hibernate.cache.ehcache.EhCacheRegionFactory
public 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.RegionFactory
buildEntityRegion
in class org.hibernate.cache.ehcache.EhCacheRegionFactory
org.hibernate.cache.CacheException
public 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.RegionFactory
buildCollectionRegion
in class org.hibernate.cache.ehcache.EhCacheRegionFactory
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws org.hibernate.cache.CacheException
buildQueryResultsRegion
in interface org.hibernate.cache.spi.RegionFactory
buildQueryResultsRegion
in class org.hibernate.cache.ehcache.EhCacheRegionFactory
org.hibernate.cache.CacheException
public org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws org.hibernate.cache.CacheException
buildTimestampsRegion
in interface org.hibernate.cache.spi.RegionFactory
buildTimestampsRegion
in class org.hibernate.cache.ehcache.EhCacheRegionFactory
org.hibernate.cache.CacheException
public 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.RegionFactory
buildNaturalIdRegion
in class org.hibernate.cache.ehcache.EhCacheRegionFactory
org.hibernate.cache.CacheException
Copyright © 2003–2020 Atlassian. All rights reserved.