public class RedissonRegionFactory
extends org.hibernate.cache.spi.support.RegionFactoryTemplate
| Modifier and Type | Field and Description |
|---|---|
static String |
COLLECTION_DEF |
static String |
CONFIG_PREFIX |
static String |
ENTITY_DEF |
protected boolean |
fallback |
static String |
FALLBACK |
static String |
MAX_ENTRIES_SUFFIX |
static String |
MAX_IDLE_SUFFIX |
static String |
NATURAL_ID_DEF |
static String |
QUERY_DEF |
static String |
REDISSON_CONFIG_PATH |
static String |
TIMESTAMPS_DEF |
static String |
TTL_SUFFIX |
| Constructor and Description |
|---|
RedissonRegionFactory() |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.cache.spi.DomainDataRegion |
buildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig,
org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext) |
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 RedissonClient |
createRedissonClient(Map properties) |
protected org.hibernate.cache.spi.support.StorageAccess |
createTimestampsRegionStorageAccess(String regionName,
org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory) |
protected RMapCache<Object,Object> |
getCache(String regionName,
Map properties,
String defaultKey) |
org.hibernate.cache.spi.access.AccessType |
getDefaultAccessType() |
protected org.hibernate.cache.spi.CacheKeysFactory |
getImplicitCacheKeysFactory() |
boolean |
isMinimalPutsEnabledByDefault() |
long |
nextTimestamp() |
protected void |
prepareForUse(org.hibernate.boot.spi.SessionFactoryOptions settings,
Map properties) |
protected void |
releaseFromUse() |
buildQueryResultsRegion, buildTimestampsRegionpublic static final String QUERY_DEF
public static final String COLLECTION_DEF
public static final String ENTITY_DEF
public static final String NATURAL_ID_DEF
public static final String TIMESTAMPS_DEF
public static final String MAX_ENTRIES_SUFFIX
public static final String TTL_SUFFIX
public static final String MAX_IDLE_SUFFIX
public static final String CONFIG_PREFIX
public static final String REDISSON_CONFIG_PATH
public static final String FALLBACK
protected boolean fallback
protected org.hibernate.cache.spi.CacheKeysFactory getImplicitCacheKeysFactory()
getImplicitCacheKeysFactory in class org.hibernate.cache.spi.support.RegionFactoryTemplateprotected void prepareForUse(org.hibernate.boot.spi.SessionFactoryOptions settings,
Map properties)
throws org.hibernate.cache.CacheException
prepareForUse in class org.hibernate.cache.spi.AbstractRegionFactoryorg.hibernate.cache.CacheExceptionprotected RedissonClient createRedissonClient(Map properties)
protected void releaseFromUse()
releaseFromUse in class org.hibernate.cache.spi.AbstractRegionFactorypublic boolean isMinimalPutsEnabledByDefault()
isMinimalPutsEnabledByDefault in interface org.hibernate.cache.spi.RegionFactoryisMinimalPutsEnabledByDefault in class org.hibernate.cache.spi.AbstractRegionFactorypublic org.hibernate.cache.spi.access.AccessType getDefaultAccessType()
getDefaultAccessType in interface org.hibernate.cache.spi.RegionFactorygetDefaultAccessType in class org.hibernate.cache.spi.AbstractRegionFactorypublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.spi.RegionFactorynextTimestamp in class org.hibernate.cache.spi.AbstractRegionFactorypublic org.hibernate.cache.spi.DomainDataRegion buildDomainDataRegion(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig,
org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext)
buildDomainDataRegion in interface org.hibernate.cache.spi.RegionFactorybuildDomainDataRegion in class org.hibernate.cache.spi.support.RegionFactoryTemplateprotected org.hibernate.cache.spi.support.DomainDataStorageAccess createDomainDataStorageAccess(org.hibernate.cache.cfg.spi.DomainDataRegionConfig regionConfig,
org.hibernate.cache.cfg.spi.DomainDataRegionBuildingContext buildingContext)
createDomainDataStorageAccess in class org.hibernate.cache.spi.support.RegionFactoryTemplateprotected org.hibernate.cache.spi.support.StorageAccess createQueryResultsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
createQueryResultsRegionStorageAccess in class org.hibernate.cache.spi.support.RegionFactoryTemplateprotected org.hibernate.cache.spi.support.StorageAccess createTimestampsRegionStorageAccess(String regionName, org.hibernate.engine.spi.SessionFactoryImplementor sessionFactory)
createTimestampsRegionStorageAccess in class org.hibernate.cache.spi.support.RegionFactoryTemplateCopyright © 2014–2020 Redisson. All rights reserved.