Package org.redisson.hibernate.region
Class BaseRegion
java.lang.Object
org.redisson.hibernate.region.BaseRegion
- All Implemented Interfaces:
org.hibernate.cache.spi.GeneralDataRegion
,org.hibernate.cache.spi.Region
,org.hibernate.cache.spi.TransactionalDataRegion
- Direct Known Subclasses:
RedissonCollectionRegion
,RedissonEntityRegion
,RedissonNaturalIdRegion
,RedissonQueryRegion
,RedissonTimestampsRegion
public class BaseRegion
extends Object
implements org.hibernate.cache.spi.TransactionalDataRegion, org.hibernate.cache.spi.GeneralDataRegion
- Author:
- Nikita Koksharov
-
Constructor Summary
ConstructorsConstructorDescriptionBaseRegion
(RMapCache<Object, Object> mapCache, ConnectionManager connectionManager, org.hibernate.cache.spi.RegionFactory regionFactory, org.hibernate.cache.spi.CacheDataDescription metadata, Properties properties, String defaultKey) -
Method Summary
-
Constructor Details
-
BaseRegion
public BaseRegion(RMapCache<Object, Object> mapCache, ConnectionManager connectionManager, org.hibernate.cache.spi.RegionFactory regionFactory, org.hibernate.cache.spi.CacheDataDescription metadata, Properties properties, String defaultKey)
-
-
Method Details
-
isTransactionAware
public boolean isTransactionAware()- Specified by:
isTransactionAware
in interfaceorg.hibernate.cache.spi.TransactionalDataRegion
-
getCacheDataDescription
public org.hibernate.cache.spi.CacheDataDescription getCacheDataDescription()- Specified by:
getCacheDataDescription
in interfaceorg.hibernate.cache.spi.TransactionalDataRegion
-
getName
- Specified by:
getName
in interfaceorg.hibernate.cache.spi.Region
-
destroy
public void destroy() throws org.hibernate.cache.CacheException- Specified by:
destroy
in interfaceorg.hibernate.cache.spi.Region
- Throws:
org.hibernate.cache.CacheException
-
contains
- Specified by:
contains
in interfaceorg.hibernate.cache.spi.Region
-
getSizeInMemory
public long getSizeInMemory()- Specified by:
getSizeInMemory
in interfaceorg.hibernate.cache.spi.Region
-
getElementCountInMemory
public long getElementCountInMemory()- Specified by:
getElementCountInMemory
in interfaceorg.hibernate.cache.spi.Region
-
getElementCountOnDisk
public long getElementCountOnDisk()- Specified by:
getElementCountOnDisk
in interfaceorg.hibernate.cache.spi.Region
-
toMap
- Specified by:
toMap
in interfaceorg.hibernate.cache.spi.Region
-
nextTimestamp
public long nextTimestamp()- Specified by:
nextTimestamp
in interfaceorg.hibernate.cache.spi.Region
-
getTimeout
public int getTimeout()- Specified by:
getTimeout
in interfaceorg.hibernate.cache.spi.Region
-
get
- Specified by:
get
in interfaceorg.hibernate.cache.spi.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
-
put
- Specified by:
put
in interfaceorg.hibernate.cache.spi.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
-
evict
- Specified by:
evict
in interfaceorg.hibernate.cache.spi.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
-
evictAll
public void evictAll() throws org.hibernate.cache.CacheException- Specified by:
evictAll
in interfaceorg.hibernate.cache.spi.GeneralDataRegion
- Throws:
org.hibernate.cache.CacheException
-