Class 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 of EhCacheRegionFactory 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 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 interface org.hibernate.cache.spi.RegionFactory
        Overrides:
        start in class org.hibernate.cache.ehcache.EhCacheRegionFactory
        Throws:
        org.hibernate.cache.CacheException
      • isMinimalPutsEnabledByDefault

        public boolean isMinimalPutsEnabledByDefault()
        Specified by:
        isMinimalPutsEnabledByDefault in interface org.hibernate.cache.spi.RegionFactory
      • nextTimestamp

        public long nextTimestamp()
        Specified by:
        nextTimestamp in interface org.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 interface org.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 interface org.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 interface org.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 interface org.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 interface org.hibernate.cache.spi.RegionFactory
        Throws:
        org.hibernate.cache.CacheException
      • getDefaultAccessType

        public org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
        Specified by:
        getDefaultAccessType in interface org.hibernate.cache.spi.RegionFactory