类 RedisRegionFactory

java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
org.hibernate.cache.spi.support.RegionFactoryTemplate
com.publiccms.common.redis.hibernate.RedisRegionFactory
所有已实现的接口:
Serializable, org.hibernate.cache.spi.RegionFactory, org.hibernate.service.Service, org.hibernate.service.spi.Stoppable
直接已知子类:
SingletonRedisRegionFactory

public class RedisRegionFactory extends org.hibernate.cache.spi.support.RegionFactoryTemplate
Redis领域工厂 Redis Region Factory
另请参阅:
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    private final org.hibernate.cache.spi.CacheKeysFactory
     
    protected final org.apache.commons.logging.Log
     
    protected RedisClient
    RedisClient instance.
    private static final long
     

    从类继承的字段 org.hibernate.cache.spi.AbstractRegionFactory

    LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES, LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES

    从接口继承的字段 org.hibernate.cache.spi.RegionFactory

    DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
  • 构造器概要

    构造器
    构造器
    说明
     
    RedisRegionFactory(org.hibernate.cache.spi.CacheKeysFactory cacheKeysFactory)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    org.hibernate.cache.spi.DomainDataRegion
    buildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext)
     
    protected boolean
    cacheExists(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
     
    protected org.hibernate.cache.spi.support.DomainDataStorageAccess
    createDomainDataStorageAccess(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext)
     
    protected org.hibernate.cache.spi.support.StorageAccess
    createQueryResultsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
     
    protected org.hibernate.cache.spi.support.StorageAccess
    createTimestampsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
     
    protected final String
    defaultRegionName(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String defaultRegionName, List<String> legacyDefaultRegionNames)
     
    protected org.hibernate.cache.spi.CacheKeysFactory
     
    getOrCreateCache(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
     
    protected boolean
     
    protected void
    prepareForUse(org.hibernate.boot.spi.SessionFactoryOptions settings, Map configValues)
     
    protected void
     
    protected RedisClient
    resolveRedisClient(Map configValues)
     

    从类继承的方法 org.hibernate.cache.spi.support.RegionFactoryTemplate

    buildQueryResultsRegion, buildTimestampsRegion

    从类继承的方法 org.hibernate.cache.spi.AbstractRegionFactory

    createTransactionContext, getDefaultAccessType, getOptions, getTimeout, isMinimalPutsEnabledByDefault, nextTimestamp, qualify, start, stop, verifiedStartStatus, verifyStarted

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • log

      protected final transient org.apache.commons.logging.Log log
    • serialVersionUID

      private static final long serialVersionUID
      另请参阅:
    • cacheKeysFactory

      private final transient org.hibernate.cache.spi.CacheKeysFactory cacheKeysFactory
    • redisClient

      protected transient RedisClient redisClient
      RedisClient instance.
  • 构造器详细资料

    • RedisRegionFactory

      public RedisRegionFactory()
    • RedisRegionFactory

      public RedisRegionFactory(org.hibernate.cache.spi.CacheKeysFactory cacheKeysFactory)
  • 方法详细资料

    • getImplicitCacheKeysFactory

      protected org.hibernate.cache.spi.CacheKeysFactory getImplicitCacheKeysFactory()
      覆盖:
      getImplicitCacheKeysFactory 在类中 org.hibernate.cache.spi.support.RegionFactoryTemplate
    • buildDomainDataRegion

      public org.hibernate.cache.spi.DomainDataRegion buildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext)
      指定者:
      buildDomainDataRegion 在接口中 org.hibernate.cache.spi.RegionFactory
      覆盖:
      buildDomainDataRegion 在类中 org.hibernate.cache.spi.support.RegionFactoryTemplate
    • createDomainDataStorageAccess

      protected org.hibernate.cache.spi.support.DomainDataStorageAccess createDomainDataStorageAccess(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig, org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext)
      覆盖:
      createDomainDataStorageAccess 在类中 org.hibernate.cache.spi.support.RegionFactoryTemplate
    • createQueryResultsRegionStorageAccess

      protected org.hibernate.cache.spi.support.StorageAccess createQueryResultsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
      指定者:
      createQueryResultsRegionStorageAccess 在类中 org.hibernate.cache.spi.support.RegionFactoryTemplate
    • createTimestampsRegionStorageAccess

      protected org.hibernate.cache.spi.support.StorageAccess createTimestampsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
      指定者:
      createTimestampsRegionStorageAccess 在类中 org.hibernate.cache.spi.support.RegionFactoryTemplate
    • defaultRegionName

      protected final String defaultRegionName(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory, String defaultRegionName, List<String> legacyDefaultRegionNames)
    • getOrCreateCache

      protected RedisCacheEntity<Object,Object> getOrCreateCache(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
    • cacheExists

      protected boolean cacheExists(String unqualifiedRegionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
    • isStarted

      protected boolean isStarted()
      覆盖:
      isStarted 在类中 org.hibernate.cache.spi.AbstractRegionFactory
    • prepareForUse

      protected void prepareForUse(org.hibernate.boot.spi.SessionFactoryOptions settings, Map configValues)
      指定者:
      prepareForUse 在类中 org.hibernate.cache.spi.AbstractRegionFactory
    • resolveRedisClient

      protected RedisClient resolveRedisClient(Map configValues) throws IOException
      抛出:
      IOException
    • releaseFromUse

      protected void releaseFromUse()
      指定者:
      releaseFromUse 在类中 org.hibernate.cache.spi.AbstractRegionFactory