com.hazelcast.hibernate.region
public class HazelcastNaturalIdRegion extends AbstractTransactionalDataRegion<IMapRegionCache> implements org.hibernate.cache.spi.NaturalIdRegion
Modifier and Type | Field and Description |
---|---|
protected Properties |
props |
Constructor and Description |
---|
HazelcastNaturalIdRegion(HazelcastInstance instance,
String regionName,
Properties props,
org.hibernate.cache.spi.CacheDataDescription metadata) |
Modifier and Type | Method and Description |
---|---|
org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy |
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, isTransactionAware
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
protected final Properties props
public HazelcastNaturalIdRegion(HazelcastInstance instance, String regionName, Properties props, org.hibernate.cache.spi.CacheDataDescription metadata)
public org.hibernate.cache.spi.access.NaturalIdRegionAccessStrategy buildAccessStrategy(org.hibernate.cache.spi.access.AccessType accessType) throws org.hibernate.cache.CacheException
buildAccessStrategy
in interface org.hibernate.cache.spi.NaturalIdRegion
org.hibernate.cache.CacheException
public void destroy() throws org.hibernate.cache.CacheException
org.hibernate.cache.CacheException
public long getElementCountInMemory()
IMap
.public long getElementCountOnDisk()
public String getName()
public long getSizeInMemory()
public final int getTimeout()
public final long nextTimestamp()
public Map toMap()
org.hibernate.stat.SecondLevelCacheStatistics
.IMap
used for this region.public boolean contains(Object key)
public 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.