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.EhCacheRegionFactory
An extension ofEhCacheRegionFactory
that 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 String
NET_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.CollectionRegion
buildCollectionRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2)
org.hibernate.cache.spi.EntityRegion
buildEntityRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2)
org.hibernate.cache.spi.NaturalIdRegion
buildNaturalIdRegion(String arg0, Properties arg1, org.hibernate.cache.spi.CacheDataDescription arg2)
org.hibernate.cache.spi.QueryResultsRegion
buildQueryResultsRegion(String arg0, Properties arg1)
org.hibernate.cache.spi.TimestampsRegion
buildTimestampsRegion(String arg0, Properties arg1)
org.hibernate.cache.spi.access.AccessType
getDefaultAccessType()
boolean
isMinimalPutsEnabledByDefault()
long
nextTimestamp()
void
setClassLoaderService(org.hibernate.boot.registry.classloading.spi.ClassLoaderService arg0)
void
start(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:
start
in interfaceorg.hibernate.cache.spi.RegionFactory
- Overrides:
start
in classorg.hibernate.cache.ehcache.EhCacheRegionFactory
- Throws:
org.hibernate.cache.CacheException
-
isMinimalPutsEnabledByDefault
public boolean isMinimalPutsEnabledByDefault()
- Specified by:
isMinimalPutsEnabledByDefault
in interfaceorg.hibernate.cache.spi.RegionFactory
-
nextTimestamp
public long nextTimestamp()
- Specified by:
nextTimestamp
in 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:
buildEntityRegion
in 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:
buildNaturalIdRegion
in 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:
buildCollectionRegion
in 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:
buildQueryResultsRegion
in 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:
buildTimestampsRegion
in interfaceorg.hibernate.cache.spi.RegionFactory
- Throws:
org.hibernate.cache.CacheException
-
getDefaultAccessType
public org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
- Specified by:
getDefaultAccessType
in interfaceorg.hibernate.cache.spi.RegionFactory
-
-