Cache - implementation type of RegionCachepublic class HazelcastTimestampsRegion<Cache extends RegionCache> extends Object implements org.hibernate.cache.spi.TimestampsRegion
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
props |
| Constructor and Description |
|---|
HazelcastTimestampsRegion(com.hazelcast.core.HazelcastInstance instance,
String name,
Properties props,
Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Object key) |
void |
destroy() |
void |
evict(Object key) |
void |
evictAll() |
Object |
get(org.hibernate.engine.spi.SessionImplementor session,
Object key) |
Cache |
getCache() |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk()
Hazelcast does not support pushing elements to disk.
|
com.hazelcast.core.HazelcastInstance |
getInstance() |
com.hazelcast.logging.ILogger |
getLogger() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
long |
nextTimestamp() |
void |
put(org.hibernate.engine.spi.SessionImplementor session,
Object key,
Object value) |
Map |
toMap()
Appears to be used only by
org.hibernate.stat.SecondLevelCacheStatistics. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final Properties props
public HazelcastTimestampsRegion(com.hazelcast.core.HazelcastInstance instance,
String name,
Properties props,
Cache cache)
public 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.CacheExceptionpublic Object get(org.hibernate.engine.spi.SessionImplementor 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.SessionImplementor session,
Object key,
Object value)
throws org.hibernate.cache.CacheException
put in interface org.hibernate.cache.spi.GeneralDataRegionorg.hibernate.cache.CacheExceptionpublic Cache getCache()
getCache in interface HazelcastRegion<Cache extends RegionCache>public void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.spi.Regionorg.hibernate.cache.CacheExceptionpublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.spi.RegionIMap.public long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.spi.Regionpublic String getName()
getName in interface org.hibernate.cache.spi.Regionpublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.spi.Regionpublic final int getTimeout()
getTimeout in interface org.hibernate.cache.spi.Regionpublic final long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.spi.Regionpublic Map toMap()
org.hibernate.stat.SecondLevelCacheStatistics.toMap in interface org.hibernate.cache.spi.RegionIMap used for this region.public boolean contains(Object key)
contains in interface org.hibernate.cache.spi.Regionpublic final com.hazelcast.core.HazelcastInstance getInstance()
getInstance in interface HazelcastRegion<Cache extends RegionCache>public final com.hazelcast.logging.ILogger getLogger()
getLogger in interface HazelcastRegion<Cache extends RegionCache>Copyright © 2018. All Rights Reserved.