public final class HazelcastCache extends Object implements org.hibernate.cache.Cache
Cache interface for compatibility with pre-Hibernate 3.3.x
code.HazelcastCacheProvider,
HazelcastCacheRegionFactory| Constructor and Description |
|---|
HazelcastCache(HazelcastInstance instance,
String regionName,
Properties props) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
destroy() |
Object |
get(Object key) |
long |
getElementCountInMemory() |
long |
getElementCountOnDisk()
Hazelcast does not support pushing elements to disk.
|
String |
getRegionName() |
long |
getSizeInMemory() |
int |
getTimeout() |
void |
lock(Object key) |
long |
nextTimestamp() |
void |
put(Object key,
Object value) |
Object |
read(Object key) |
void |
remove(Object key) |
Map |
toMap() |
void |
unlock(Object key) |
void |
update(Object key,
Object value) |
public HazelcastCache(HazelcastInstance instance, String regionName, Properties props)
public void clear()
throws org.hibernate.cache.CacheException
clear in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void destroy()
throws org.hibernate.cache.CacheException
destroy in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic long getElementCountInMemory()
getElementCountInMemory in interface org.hibernate.cache.Cachepublic long getElementCountOnDisk()
getElementCountOnDisk in interface org.hibernate.cache.Cachepublic String getRegionName()
getRegionName in interface org.hibernate.cache.Cachepublic long getSizeInMemory()
getSizeInMemory in interface org.hibernate.cache.Cachepublic int getTimeout()
getTimeout in interface org.hibernate.cache.Cachepublic long nextTimestamp()
nextTimestamp in interface org.hibernate.cache.Cachepublic void lock(Object key) throws org.hibernate.cache.CacheException
lock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void unlock(Object key) throws org.hibernate.cache.CacheException
unlock in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic Object get(Object key) throws org.hibernate.cache.CacheException
get in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic Object read(Object key) throws org.hibernate.cache.CacheException
read in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void put(Object key, Object value) throws org.hibernate.cache.CacheException
put in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void remove(Object key) throws org.hibernate.cache.CacheException
remove in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic void update(Object key, Object value) throws org.hibernate.cache.CacheException
update in interface org.hibernate.cache.Cacheorg.hibernate.cache.CacheExceptionpublic Map toMap()
toMap in interface org.hibernate.cache.CacheIMap used for this cache.Copyright © 2013 Hazelcast, Inc.. All rights reserved.