public class TimestampsRegionCache extends LocalRegionCache implements RegionCache
cache| Constructor and Description |
|---|
TimestampsRegionCache(org.hibernate.cache.spi.RegionFactory regionFactory,
String name,
com.hazelcast.core.HazelcastInstance hazelcastInstance) |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
createMessage(Object key,
Object value,
Object currentVersion) |
void |
evictData() |
protected void |
maybeInvalidate(Object messageObject) |
boolean |
put(Object key,
Object value,
long txTimestamp,
Object version) |
afterUpdate, contains, evictData, get, getElementCountInMemory, getName, getRegionFactory, getSizeInMemory, nextTimestamp, unlockItemclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterUpdate, clear, contains, destroy, evictData, get, getElementCountOnDisk, nextTimestamp, unlockItempublic TimestampsRegionCache(org.hibernate.cache.spi.RegionFactory regionFactory,
String name,
com.hazelcast.core.HazelcastInstance hazelcastInstance)
regionFactory - the region factoryname - the name for this region cache, which is also used to retrieve configuration/topichazelcastInstance - the HazelcastInstance to which this region cache belongs, used to retrieve
configuration and to lookup an ITopic to register a MessageListener
with (optional)public void evictData()
evictData in interface RegionCacheevictData in class LocalRegionCachepublic boolean put(Object key, Object value, long txTimestamp, Object version)
put in interface RegionCacheput in class LocalRegionCacheprotected Object createMessage(Object key, Object value, Object currentVersion)
createMessage in class LocalRegionCacheprotected void maybeInvalidate(Object messageObject)
maybeInvalidate in class LocalRegionCacheCopyright © 2019. All Rights Reserved.