public class IMapRegionCache extends Object implements RegionCache
RegionCache implementation based on the underlying IMap
Note, IMap locks are intentionally not used in this class. Hibernate region caches make use of a concept
called soft-locking which has the following properties:
null| Constructor and Description |
|---|
IMapRegionCache(org.hibernate.cache.spi.RegionFactory regionFactory,
String name,
com.hazelcast.core.HazelcastInstance hazelcastInstance) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterUpdate(Object key,
Object newValue,
Object newVersion) |
boolean |
contains(Object key) |
void |
evictData() |
void |
evictData(Object key) |
Object |
get(Object key,
long txTimestamp) |
long |
getElementCountInMemory() |
String |
getName() |
org.hibernate.cache.spi.RegionFactory |
getRegionFactory() |
long |
getSizeInMemory() |
boolean |
put(Object key,
Object value,
long txTimestamp,
Object version) |
void |
unlockItem(Object key,
org.hibernate.cache.spi.access.SoftLock lock) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclear, destroy, getElementCountOnDisk, nextTimestamppublic IMapRegionCache(org.hibernate.cache.spi.RegionFactory regionFactory,
String name,
com.hazelcast.core.HazelcastInstance hazelcastInstance)
public void afterUpdate(Object key, Object newValue, Object newVersion)
afterUpdate in interface RegionCachepublic boolean contains(Object key)
contains in interface RegionCachepublic void evictData()
evictData in interface RegionCachepublic void evictData(Object key)
evictData in interface RegionCachepublic Object get(Object key, long txTimestamp)
get in interface RegionCachepublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.spi.ExtendedStatisticsSupportpublic String getName()
getName in interface org.hibernate.cache.spi.Regionpublic org.hibernate.cache.spi.RegionFactory getRegionFactory()
getRegionFactory in interface org.hibernate.cache.spi.Regionpublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.spi.ExtendedStatisticsSupportpublic boolean put(Object key, Object value, long txTimestamp, Object version)
put in interface RegionCachepublic void unlockItem(Object key, org.hibernate.cache.spi.access.SoftLock lock)
unlockItem in interface RegionCacheCopyright © 2019. All Rights Reserved.