public class MapClientProxy<K,V> extends Object implements IMap<K,V>, EntryHolder
Instance.InstanceType| Constructor and Description |
|---|
MapClientProxy(HazelcastClient client,
String name) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEntryListener(EntryListener<K,V> listener,
boolean includeValue) |
void |
addEntryListener(EntryListener<K,V> listener,
K key,
boolean includeValue) |
void |
addIndex(Expression<?> expression,
boolean ordered) |
void |
addIndex(String attribute,
boolean ordered) |
void |
addLocalEntryListener(EntryListener<K,V> listener) |
void |
clear() |
boolean |
containsKey(Object arg0) |
boolean |
containsValue(Object arg0) |
void |
destroy() |
Set<Map.Entry<K,V>> |
entrySet() |
Set<Map.Entry<K,V>> |
entrySet(Predicate predicate) |
boolean |
equals(Object o) |
boolean |
evict(Object key) |
void |
flush() |
void |
forceUnlock(K key) |
V |
get(Object key) |
protected V |
get0(Object key) |
Map<K,V> |
getAll(Set<K> setKeys) |
Future<V> |
getAsync(K key) |
Object |
getId() |
Instance.InstanceType |
getInstanceType() |
LocalMapStats |
getLocalMapStats() |
MapEntry<K,V> |
getMapEntry(K key) |
String |
getName() |
NearCache<K,V> |
getNearCache() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isLocked(K key) |
Set<K> |
keySet() |
Set<K> |
keySet(Predicate predicate) |
Set<K> |
localKeySet() |
Set<K> |
localKeySet(Predicate predicate) |
void |
lock(K key) |
boolean |
lockMap(long time,
TimeUnit timeunit) |
V |
put(K key,
V value) |
V |
put(K key,
V value,
long ttl,
TimeUnit timeunit) |
void |
putAll(Map<? extends K,? extends V> map) |
void |
putAndUnlock(K key,
V value) |
Future<V> |
putAsync(K key,
V value) |
V |
putIfAbsent(K key,
V value) |
V |
putIfAbsent(K key,
V value,
long ttl,
TimeUnit timeunit) |
void |
putTransient(K key,
V value,
long ttl,
TimeUnit timeunit) |
V |
remove(Object arg0) |
boolean |
remove(Object arg0,
Object arg1) |
Future<V> |
removeAsync(K key) |
void |
removeEntryListener(EntryListener<K,V> listener) |
void |
removeEntryListener(EntryListener<K,V> listener,
K key) |
V |
replace(K arg0,
V arg1) |
boolean |
replace(K arg0,
V arg1,
V arg2) |
void |
set(K key,
V value) |
void |
set(K key,
V value,
long ttl,
TimeUnit timeunit) |
int |
size() |
boolean |
tryLock(K key) |
boolean |
tryLock(K key,
long time,
TimeUnit timeunit) |
V |
tryLockAndGet(K key,
long timeout,
TimeUnit timeunit) |
boolean |
tryPut(K key,
V value,
long timeout,
TimeUnit timeunit) |
Object |
tryRemove(K key,
long timeout,
TimeUnit timeunit) |
void |
unlock(K key) |
void |
unlockMap() |
Collection<V> |
values() |
Collection<V> |
values(Predicate predicate) |
public MapClientProxy(HazelcastClient client, String name)
public void addLocalEntryListener(EntryListener<K,V> listener)
addLocalEntryListener in interface IMap<K,V>public void addEntryListener(EntryListener<K,V> listener, boolean includeValue)
addEntryListener in interface IMap<K,V>public void addEntryListener(EntryListener<K,V> listener, K key, boolean includeValue)
addEntryListener in interface IMap<K,V>public void removeEntryListener(EntryListener<K,V> listener)
removeEntryListener in interface IMap<K,V>public void removeEntryListener(EntryListener<K,V> listener, K key)
removeEntryListener in interface IMap<K,V>public MapEntry<K,V> getMapEntry(K key)
getMapEntry in interface IMap<K,V>public boolean lockMap(long time,
TimeUnit timeunit)
public V tryLockAndGet(K key, long timeout, TimeUnit timeunit) throws TimeoutException
tryLockAndGet in interface IMap<K,V>TimeoutExceptionpublic void putAndUnlock(K key, V value)
putAndUnlock in interface IMap<K,V>public void forceUnlock(K key)
forceUnlock in interface IMap<K,V>public V putIfAbsent(K key, V value, long ttl, TimeUnit timeunit)
putIfAbsent in interface IMap<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface IMap<K,V>putIfAbsent in interface ConcurrentMap<K,V>public boolean remove(Object arg0, Object arg1)
remove in interface EntryHolderremove in interface IMap<K,V>remove in interface ConcurrentMap<K,V>public boolean containsKey(Object arg0)
containsKey in interface IMap<K,V>containsKey in interface Map<K,V>public boolean containsValue(Object arg0)
containsValue in interface EntryHoldercontainsValue in interface IMap<K,V>containsValue in interface Map<K,V>public Set<K> localKeySet(Predicate predicate)
localKeySet in interface IMap<K,V>public LocalMapStats getLocalMapStats()
getLocalMapStats in interface IMap<K,V>public void putTransient(K key, V value, long ttl, TimeUnit timeunit)
putTransient in interface IMap<K,V>public Object tryRemove(K key, long timeout, TimeUnit timeunit) throws TimeoutException
tryRemove in interface IMap<K,V>TimeoutExceptionpublic int size()
public Collection<V> values()
public Instance.InstanceType getInstanceType()
getInstanceType in interface Instancepublic void addIndex(String attribute, boolean ordered)
public void addIndex(Expression<?> expression, boolean ordered)
public boolean equals(Object o)
public int hashCode()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.