java.lang.Object
org.hibernate.cache.spi.AbstractRegionFactory
org.hibernate.cache.spi.support.RegionFactoryTemplate
org.redisson.hibernate.RedissonRegionFactory
org.redisson.hibernate.JndiRedissonRegionFactory
- All Implemented Interfaces:
Serializable
,org.hibernate.cache.spi.RegionFactory
,org.hibernate.service.Service
,org.hibernate.service.spi.Stoppable
Hibernate Cache region factory based on Redisson.
Uses Redisson instance located in JNDI.
- Author:
- Nikita Koksharov
- See Also:
-
Field Summary
FieldsFields inherited from class org.redisson.hibernate.RedissonRegionFactory
COLLECTION_DEF, CONFIG_PREFIX, ENTITY_DEF, fallback, FALLBACK, MAX_ENTRIES_SUFFIX, MAX_IDLE_SUFFIX, NATURAL_ID_DEF, QUERY_DEF, REDISSON_CONFIG_PATH, TIMESTAMPS_DEF, TTL_SUFFIX
Fields inherited from class org.hibernate.cache.spi.AbstractRegionFactory
LEGACY_QUERY_RESULTS_REGION_UNQUALIFIED_NAMES, LEGACY_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAMES
Fields inherited from interface org.hibernate.cache.spi.RegionFactory
DEFAULT_QUERY_RESULTS_REGION_UNQUALIFIED_NAME, DEFAULT_UPDATE_TIMESTAMPS_REGION_UNQUALIFIED_NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected RedissonClient
createRedissonClient
(org.hibernate.boot.registry.StandardServiceRegistry registry, Map properties) protected void
Methods inherited from class org.redisson.hibernate.RedissonRegionFactory
buildDomainDataRegion, createDomainDataStorageAccess, createQueryResultsRegionStorageAccess, createTimestampsRegionStorageAccess, getCache, getDefaultAccessType, getImplicitCacheKeysFactory, isMinimalPutsEnabledByDefault, nextTimestamp, prepareForUse
Methods inherited from class org.hibernate.cache.spi.support.RegionFactoryTemplate
buildQueryResultsRegion, buildTimestampsRegion
Methods inherited from class org.hibernate.cache.spi.AbstractRegionFactory
createTransactionContext, getOptions, getTimeout, isStarted, qualify, start, stop, verifiedStartStatus, verifyStarted
-
Field Details
-
JNDI_NAME
- See Also:
-
-
Constructor Details
-
JndiRedissonRegionFactory
public JndiRedissonRegionFactory()
-
-
Method Details
-
createRedissonClient
protected RedissonClient createRedissonClient(org.hibernate.boot.registry.StandardServiceRegistry registry, Map properties) - Overrides:
createRedissonClient
in classRedissonRegionFactory
-
releaseFromUse
protected void releaseFromUse()- Overrides:
releaseFromUse
in classRedissonRegionFactory
-