public abstract class AbstractGeneralRegion<Cache extends RegionCache> extends Object implements org.hibernate.cache.spi.GeneralDataRegion
Modifier and Type | Field and Description |
---|---|
protected Properties |
props |
Modifier | Constructor and Description |
---|---|
protected |
AbstractGeneralRegion(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(Object key) |
Cache |
getCache() |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk()
Hazelcast does not support pushing elements to disk.
|
HazelcastInstance |
getInstance() |
ILogger |
getLogger() |
String |
getName() |
long |
getSizeInMemory() |
int |
getTimeout() |
long |
nextTimestamp() |
void |
put(Object key,
Object value) |
Map |
toMap()
Appears to be used only by
org.hibernate.stat.SecondLevelCacheStatistics . |
protected final Properties props
protected AbstractGeneralRegion(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.GeneralDataRegion
org.hibernate.cache.CacheException
public void evictAll() throws org.hibernate.cache.CacheException
evictAll
in interface org.hibernate.cache.spi.GeneralDataRegion
org.hibernate.cache.CacheException
public Object get(Object key) throws org.hibernate.cache.CacheException
get
in interface org.hibernate.cache.spi.GeneralDataRegion
org.hibernate.cache.CacheException
public void put(Object key, Object value) throws org.hibernate.cache.CacheException
put
in interface org.hibernate.cache.spi.GeneralDataRegion
org.hibernate.cache.CacheException
public Cache getCache()
getCache
in interface HazelcastRegion<Cache extends RegionCache>
public void destroy() throws org.hibernate.cache.CacheException
destroy
in interface org.hibernate.cache.spi.Region
org.hibernate.cache.CacheException
public long getElementCountInMemory()
getElementCountInMemory
in interface org.hibernate.cache.spi.Region
IMap
.public long getElementCountOnDisk()
getElementCountOnDisk
in interface org.hibernate.cache.spi.Region
public String getName()
getName
in interface org.hibernate.cache.spi.Region
public long getSizeInMemory()
getSizeInMemory
in interface org.hibernate.cache.spi.Region
public final int getTimeout()
getTimeout
in interface org.hibernate.cache.spi.Region
public final long nextTimestamp()
nextTimestamp
in interface org.hibernate.cache.spi.Region
public Map toMap()
org.hibernate.stat.SecondLevelCacheStatistics
.toMap
in interface org.hibernate.cache.spi.Region
IMap
used for this region.public boolean contains(Object key)
contains
in interface org.hibernate.cache.spi.Region
public final HazelcastInstance getInstance()
getInstance
in interface HazelcastRegion<Cache extends RegionCache>
public final ILogger getLogger()
getLogger
in interface HazelcastRegion<Cache extends RegionCache>
Copyright © 2014 Hazelcast, Inc.. All rights reserved.