com.hazelcast.hibernate.region
Cache - implementation type of RegionCachepublic final class HazelcastEntityRegion<Cache extends RegionCache> extends AbstractTransactionalDataRegion<Cache> implements org.hibernate.cache.spi.EntityRegion
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
props |
| Constructor and Description |
|---|
HazelcastEntityRegion(HazelcastInstance instance,
String regionName,
Properties props,
org.hibernate.cache.spi.CacheDataDescription metadata,
Cache cache) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.cache.spi.access.EntityRegionAccessStrategy |
buildAccessStrategy(org.hibernate.cache.spi.access.AccessType accessType) |
boolean |
contains(Object key) |
void |
destroy() |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk()
Hazelcast does not support pushing elements to disk.
|
HazelcastInstance |
getInstance() |
ILogger |
getLogger() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
long |
nextTimestamp() |
Map |
toMap()
Appears to be used only by
org.hibernate.stat.SecondLevelCacheStatistics. |
getCache, getCacheDataDescription, isTransactionAwareclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final Properties props
public HazelcastEntityRegion(HazelcastInstance instance, String regionName, Properties props, org.hibernate.cache.spi.CacheDataDescription metadata, Cache cache)
public org.hibernate.cache.spi.access.EntityRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.spi.access.AccessType accessType)
throws org.hibernate.cache.CacheException
buildAccessStrategy in interface org.hibernate.cache.spi.EntityRegionorg.hibernate.cache.CacheExceptionpublic 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 HazelcastInstance getInstance()
getInstance in interface HazelcastRegion<Cache extends RegionCache>public final ILogger getLogger()
getLogger in interface HazelcastRegion<Cache extends RegionCache>Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.