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 txTimestamp) |
long |
getSizeInMemory() |
boolean |
insert(Object key,
Object value,
Object currentVersion) |
boolean |
put(Object key,
Object value,
long txTimestamp,
Object version) |
boolean |
remove(Object key) |
long |
size() |
SoftLock |
tryLock(Object key,
Object version) |
void |
unlock(Object key,
SoftLock lock) |
boolean |
update(Object key,
Object newValue,
Object newVersion,
SoftLock lock) |
public IMapRegionCache(String name, HazelcastInstance hazelcastInstance, Properties props, CacheDataDescription metadata)
public Object get(Object key, long txTimestamp)
get
in interface RegionCache
public boolean insert(Object key, Object value, Object currentVersion)
insert
in interface RegionCache
public boolean put(Object key, Object value, long txTimestamp, Object version)
put
in interface RegionCache
public boolean update(Object key, Object newValue, Object newVersion, 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 © 2016 Hazelcast, Inc.. All Rights Reserved.