public class BaseRegion extends Object implements org.hibernate.cache.spi.TransactionalDataRegion, org.hibernate.cache.spi.GeneralDataRegion
| Constructor and Description |
|---|
BaseRegion(RMapCache<Object,Object> mapCache,
org.hibernate.cache.spi.RegionFactory regionFactory,
org.hibernate.cache.spi.CacheDataDescription metadata,
Properties properties,
String defaultKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key) |
void |
destroy() |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key) |
org.hibernate.cache.spi.CacheDataDescription |
getCacheDataDescription() |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
boolean |
isTransactionAware() |
long |
nextTimestamp() |
void |
put(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value) |
Map<?,?> |
toMap() |
public BaseRegion(RMapCache<Object,Object> mapCache, org.hibernate.cache.spi.RegionFactory regionFactory, org.hibernate.cache.spi.CacheDataDescription metadata, Properties properties, String defaultKey)
public boolean isTransactionAware()
isTransactionAware in interface org.hibernate.cache.spi.TransactionalDataRegionpublic org.hibernate.cache.spi.CacheDataDescription getCacheDataDescription()
getCacheDataDescription in interface org.hibernate.cache.spi.TransactionalDataRegionpublic String getName()
getName in interface org.hibernate.cache.spi.Regionpublic void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.spi.Regionorg.hibernate.cache.CacheExceptionpublic boolean contains(Object key)
contains in interface org.hibernate.cache.spi.Regionpublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.spi.Regionpublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.spi.Regionpublic long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.spi.Regionpublic Map<?,?> toMap()
toMap in interface org.hibernate.cache.spi.Regionpublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.spi.Regionpublic int getTimeout()
getTimeout in interface org.hibernate.cache.spi.Regionpublic Object get(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object key) throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.spi.GeneralDataRegionorg.hibernate.cache.CacheExceptionpublic void put(org.hibernate.engine.spi.SharedSessionContractImplementor session,
Object key,
Object value)
throws org.hibernate.cache.CacheException
put in interface org.hibernate.cache.spi.GeneralDataRegionorg.hibernate.cache.CacheExceptionpublic void evict(Object key) throws org.hibernate.cache.CacheException
evict in interface org.hibernate.cache.spi.GeneralDataRegionorg.hibernate.cache.CacheExceptionpublic void evictAll()
throws org.hibernate.cache.CacheException
evictAll in interface org.hibernate.cache.spi.GeneralDataRegionorg.hibernate.cache.CacheExceptionCopyright © 2014–2019 The Redisson Project. All rights reserved.