java.lang.Object
com.hazelcast.hibernate.local.LocalRegionCache
com.hazelcast.hibernate.local.TimestampsRegionCache
- All Implemented Interfaces:
RegionCache,org.hibernate.cache.spi.ExtendedStatisticsSupport,org.hibernate.cache.spi.Region
A timestamp based local RegionCache
-
Nested Class Summary
Nested classes/interfaces inherited from class com.hazelcast.hibernate.local.LocalRegionCache
LocalRegionCache.Builder, LocalRegionCache.EvictionConfig -
Field Summary
Fields inherited from class com.hazelcast.hibernate.local.LocalRegionCache
cache -
Constructor Summary
ConstructorsConstructorDescriptionTimestampsRegionCache(org.hibernate.cache.spi.RegionFactory regionFactory, String name, com.hazelcast.core.HazelcastInstance hazelcastInstance, FreeHeapBasedCacheEvictor freeHeapBasedCacheEvictor) -
Method Summary
Methods inherited from class com.hazelcast.hibernate.local.LocalRegionCache
afterUpdate, builder, contains, destroy, evictData, get, getElementCountInMemory, getName, getRegionFactory, getSizeInMemory, nextTimestamp, unlockItemMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.cache.spi.ExtendedStatisticsSupport
getElementCountInMemory, getSizeInMemoryMethods inherited from interface org.hibernate.cache.spi.Region
getName, getRegionFactoryMethods inherited from interface com.hazelcast.hibernate.RegionCache
afterUpdate, clear, contains, destroy, evictData, get, getElementCountOnDisk, nextTimestamp, unlockItem
-
Constructor Details
-
TimestampsRegionCache
public TimestampsRegionCache(org.hibernate.cache.spi.RegionFactory regionFactory, String name, com.hazelcast.core.HazelcastInstance hazelcastInstance, FreeHeapBasedCacheEvictor freeHeapBasedCacheEvictor) - Parameters:
regionFactory- the region factoryname- the name for this region cache, which is also used to retrieve configuration/topichazelcastInstance- theHazelcastInstanceto which this region cache belongs, used to retrieve configuration and to lookup anITopicto register aMessageListenerwith (optional)freeHeapBasedCacheEvictor- performs the free-heap-based eviction
-
-
Method Details
-
evictData
public void evictData()- Specified by:
evictDatain interfaceRegionCache- Overrides:
evictDatain classLocalRegionCache
-
put
- Specified by:
putin interfaceRegionCache- Overrides:
putin classLocalRegionCache
-
createMessage
- Overrides:
createMessagein classLocalRegionCache
-
maybeInvalidate
- Overrides:
maybeInvalidatein classLocalRegionCache
-