com.hazelcast.hibernate.distributed
public class IMapRegionCache extends Object implements RegionCache
RegionCache
implementation based on the underlying IMapConstructor and Description |
---|
IMapRegionCache(String name,
HazelcastInstance hazelcastInstance,
Properties props,
CacheDataDescription metadata) |
Modifier and Type | Method and Description |
---|---|
Map |
asMap() |
void |
clear() |
boolean |
contains(Object key) |
Object |
get(Object key) |
long |
getSizeInMemory() |
boolean |
put(Object key,
Object value,
Object currentVersion) |
boolean |
remove(Object key) |
long |
size() |
SoftLock |
tryLock(Object key,
Object version) |
void |
unlock(Object key,
SoftLock lock) |
boolean |
update(Object key,
Object value,
Object currentVersion,
Object previousVersion,
SoftLock lock) |
public IMapRegionCache(String name, HazelcastInstance hazelcastInstance, Properties props, CacheDataDescription metadata)
public Object get(Object key)
get
in interface RegionCache
public boolean put(Object key, Object value, Object currentVersion)
put
in interface RegionCache
public boolean update(Object key, Object value, Object currentVersion, Object previousVersion, SoftLock lock)
update
in interface RegionCache
public boolean remove(Object key)
remove
in interface RegionCache
public SoftLock tryLock(Object key, Object version)
tryLock
in interface RegionCache
public void unlock(Object key, SoftLock lock)
unlock
in interface RegionCache
public boolean contains(Object key)
contains
in interface RegionCache
public void clear()
clear
in interface RegionCache
public long size()
size
in interface RegionCache
public long getSizeInMemory()
getSizeInMemory
in interface RegionCache
public Map asMap()
asMap
in interface RegionCache
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.