public class HazelcastCollectionRegion extends AbstractTransactionalDataRegion implements org.hibernate.cache.CollectionRegion
| Modifier and Type | Field and Description |
|---|---|
protected Properties |
props |
| Constructor and Description |
|---|
HazelcastCollectionRegion(HazelcastInstance instance,
String regionName,
Properties props,
org.hibernate.cache.CacheDataDescription metadata) |
| Modifier and Type | Method and Description |
|---|---|
org.hibernate.cache.access.CollectionRegionAccessStrategy |
buildAccessStrategy(org.hibernate.cache.access.AccessType accessType) |
void |
clearCache() |
boolean |
contains(Object key) |
void |
destroy() |
IMap |
getCache() |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk()
Hazelcast does not support pushing elements to disk.
|
HazelcastInstance |
getInstance() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
long |
nextTimestamp() |
Map |
toMap()
Appears to be used only by
org.hibernate.stat.SecondLevelCacheStatistics. |
getCacheDataDescription, isTransactionAwareclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitprotected final Properties props
public HazelcastCollectionRegion(HazelcastInstance instance, String regionName, Properties props, org.hibernate.cache.CacheDataDescription metadata)
public org.hibernate.cache.access.CollectionRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.access.AccessType accessType)
throws org.hibernate.cache.CacheException
buildAccessStrategy in interface org.hibernate.cache.CollectionRegionorg.hibernate.cache.CacheExceptionpublic final IMap getCache()
getCache in interface HazelcastRegionpublic final void clearCache()
clearCache in interface HazelcastRegionpublic void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.Regionorg.hibernate.cache.CacheExceptionpublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.RegionIMap.public long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.Regionpublic String getName()
getName in interface org.hibernate.cache.Regionpublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.Regionpublic final int getTimeout()
getTimeout in interface org.hibernate.cache.Regionpublic final long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.Regionpublic Map toMap()
org.hibernate.stat.SecondLevelCacheStatistics.toMap in interface org.hibernate.cache.RegionIMap used for this region.public boolean contains(Object key)
contains in interface org.hibernate.cache.Regionpublic final HazelcastInstance getInstance()
getInstance in interface HazelcastRegionCopyright © 2021 Hazel Bilisim Ltd.. All rights reserved.