Class ClusterEhCacheRegionFactory
- java.lang.Object
-
- org.hibernate.cache.ehcache.EhCacheRegionFactory
-
- com.logicaldoc.enterprise.cluster.ClusterEhCacheRegionFactory
-
- All Implemented Interfaces:
Serializable,org.hibernate.cache.spi.RegionFactory,org.hibernate.service.Service
public class ClusterEhCacheRegionFactory extends org.hibernate.cache.ehcache.EhCacheRegionFactoryAn extension ofEhCacheRegionFactorythat changes the default config file to /ehcache-cluster.xml when the clustering is active.- Since:
- 6.5
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringNET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
-
Constructor Summary
Constructors Constructor Description ClusterEhCacheRegionFactory(Properties prop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.hibernate.cache.spi.CollectionRegionbuildCollectionRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2)org.hibernate.cache.spi.EntityRegionbuildEntityRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2)org.hibernate.cache.spi.NaturalIdRegionbuildNaturalIdRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2)org.hibernate.cache.spi.QueryResultsRegionbuildQueryResultsRegion(String arg0, Properties arg1)org.hibernate.cache.spi.TimestampsRegionbuildTimestampsRegion(String arg0, Properties arg1)org.hibernate.cache.spi.access.AccessTypegetDefaultAccessType()booleanisMinimalPutsEnabledByDefault()longnextTimestamp()voidsetClassLoaderService(org.hibernate.boot.registry.classloading.spi.ClassLoaderService arg0)voidstart(org.hibernate.boot.spi.SessionFactoryOptions options, Properties properties)
-
-
-
Field Detail
-
NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
public static final String NET_SF_EHCACHE_CONFIGURATION_RESOURCE_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClusterEhCacheRegionFactory
public ClusterEhCacheRegionFactory(Properties prop)
-
-
Method Detail
-
start
public void start(org.hibernate.boot.spi.SessionFactoryOptions options, Properties properties) throws org.hibernate.cache.CacheException- Specified by:
startin interfaceorg.hibernate.cache.spi.RegionFactory- Overrides:
startin classorg.hibernate.cache.ehcache.EhCacheRegionFactory- 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
-
buildEntityRegion
public org.hibernate.cache.spi.EntityRegion buildEntityRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2) throws org.hibernate.cache.CacheException
- Specified by:
buildEntityRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
buildNaturalIdRegion
public org.hibernate.cache.spi.NaturalIdRegion buildNaturalIdRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2) throws org.hibernate.cache.CacheException
- Specified by:
buildNaturalIdRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
buildCollectionRegion
public org.hibernate.cache.spi.CollectionRegion buildCollectionRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2) 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 arg0, Properties arg1) throws org.hibernate.cache.CacheException
- Specified by:
buildQueryResultsRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
setClassLoaderService
public void setClassLoaderService(org.hibernate.boot.registry.classloading.spi.ClassLoaderService arg0)
-
buildTimestampsRegion
public org.hibernate.cache.spi.TimestampsRegion buildTimestampsRegion(String arg0, Properties arg1) throws org.hibernate.cache.CacheException
- Specified by:
buildTimestampsRegionin interfaceorg.hibernate.cache.spi.RegionFactory- Throws:
org.hibernate.cache.CacheException
-
getDefaultAccessType
public org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
- Specified by:
getDefaultAccessTypein interfaceorg.hibernate.cache.spi.RegionFactory
-
-