Class HibernateJvmVCacheRegionFactory
- java.lang.Object
-
- org.hibernate.cache.ehcache.EhCacheRegionFactory
-
- com.atlassian.confluence.impl.hibernate.HibernateJvmVCacheRegionFactory
-
- All Implemented Interfaces:
Serializable,org.hibernate.cache.spi.RegionFactory,org.hibernate.service.Service
public class HibernateJvmVCacheRegionFactory extends org.hibernate.cache.ehcache.EhCacheRegionFactoryBasically anEhCacheRegionFactorybut shares an instance of EhCacheCacheManagerwith AtlassianCacheManager. Since HibernateEhCacheRegionFactoryinteracts with EhCacheCacheManagerdirectly, 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
-
-
Field Summary
Fields Modifier and Type Field Description protected org.hibernate.cache.ehcache.internal.strategy.EhcacheAccessStrategyFactoryaccessStrategyFactoryprotected net.sf.ehcache.CacheManagermanagerprotected org.hibernate.cache.ehcache.management.impl.ProviderMBeanRegistrationHelpermbeanRegistrationHelperstatic StringNET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAMEprotected org.hibernate.boot.spi.SessionFactoryOptionssettings
-
Constructor Summary
Constructors Constructor Description HibernateJvmVCacheRegionFactory(net.sf.ehcache.CacheManager cacheManager, 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.CollectionRegionbuildCollectionRegion(String regionName, Properties configValues, org.hibernate.cache.spi.CacheDataDescription metadata)org.hibernate.cache.spi.EntityRegionbuildEntityRegion(String regionName, Properties properties, org.hibernate.cache.spi.CacheDataDescription metadata)org.hibernate.cache.spi.NaturalIdRegionbuildNaturalIdRegion(String regionName, Properties properties, org.hibernate.cache.spi.CacheDataDescription metadata)org.hibernate.cache.spi.QueryResultsRegionbuildQueryResultsRegion(String regionName, Properties properties)org.hibernate.cache.spi.TimestampsRegionbuildTimestampsRegion(String regionName, Properties properties)org.hibernate.cache.spi.access.AccessTypegetDefaultAccessType()booleanisMinimalPutsEnabledByDefault()protected URLloadResource(String arg0)longnextTimestamp()voidsetClassLoaderService(org.hibernate.boot.registry.classloading.spi.ClassLoaderService arg0)voidstop()
-
-
-
Field Detail
-
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
public static final String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
- See Also:
- Constant Field Values
-
mbeanRegistrationHelper
protected final org.hibernate.cache.ehcache.management.impl.ProviderMBeanRegistrationHelper mbeanRegistrationHelper
-
manager
protected volatile net.sf.ehcache.CacheManager manager
-
settings
protected org.hibernate.boot.spi.SessionFactoryOptions settings
-
accessStrategyFactory
protected final org.hibernate.cache.ehcache.internal.strategy.EhcacheAccessStrategyFactory accessStrategyFactory
-
-
Method Detail
-
stop
public void stop()
- Specified by:
stopin interfaceorg.hibernate.cache.spi.RegionFactory- Overrides:
stopin classorg.hibernate.cache.ehcache.EhCacheRegionFactory
-
buildEntityRegion
public org.hibernate.cache.spi.EntityRegion buildEntityRegion(String regionName, Properties properties, org.hibernate.cache.spi.CacheDataDescription metadata) throws org.hibernate.cache.CacheException
- Specified by:
buildEntityRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
buildCollectionRegion
public org.hibernate.cache.spi.CollectionRegion buildCollectionRegion(String regionName, Properties configValues, org.hibernate.cache.spi.CacheDataDescription metadata) throws org.hibernate.cache.CacheException
- Specified by:
buildCollectionRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
buildQueryResultsRegion
public org.hibernate.cache.spi.QueryResultsRegion buildQueryResultsRegion(String regionName, Properties properties) throws org.hibernate.cache.CacheException
- Specified by:
buildQueryResultsRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
buildTimestampsRegion
public org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String regionName, Properties properties) throws org.hibernate.cache.CacheException
- Specified by:
buildTimestampsRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
buildNaturalIdRegion
public org.hibernate.cache.spi.NaturalIdRegion buildNaturalIdRegion(String regionName, Properties properties, org.hibernate.cache.spi.CacheDataDescription metadata) throws org.hibernate.cache.CacheException
- Specified by:
buildNaturalIdRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
- Specified by:
isMinimalPutsEnabledByDefaultin interfaceorg.hibernate.cache.spi.RegionFactory
-
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestampin interfaceorg.hibernate.cache.spi.RegionFactory
-
setClassLoaderService
public void setClassLoaderService(org.hibernate.boot.registry.classloading.spi.ClassLoaderService arg0)
-
getDefaultAccessType
public org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
- Specified by:
getDefaultAccessTypein interfaceorg.hibernate.cache.spi.RegionFactory
-
-