public class ClientMapProxy<K,V> extends ClientProxy implements IMap<K,V>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
NULL_KEY_IS_NOT_ALLOWED |
protected static String |
NULL_VALUE_IS_NOT_ALLOWED |
| Constructor and Description |
|---|
ClientMapProxy(String serviceName,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
addEntryListener(EntryListener listener,
boolean includeValue) |
String |
addEntryListener(EntryListener listener,
K key,
boolean includeValue) |
String |
addEntryListener(EntryListener listener,
Predicate<K,V> predicate,
boolean includeValue) |
String |
addEntryListener(EntryListener listener,
Predicate<K,V> predicate,
K key,
boolean includeValue) |
String |
addEntryListener(MapListener listener,
boolean includeValue) |
String |
addEntryListener(MapListener listener,
K key,
boolean includeValue) |
String |
addEntryListener(MapListener listener,
Predicate<K,V> predicate,
boolean includeValue) |
String |
addEntryListener(MapListener listener,
Predicate<K,V> predicate,
K key,
boolean includeValue) |
void |
addIndex(String attribute,
boolean ordered) |
String |
addInterceptor(MapInterceptor interceptor) |
String |
addLocalEntryListener(EntryListener listener) |
String |
addLocalEntryListener(EntryListener listener,
Predicate<K,V> predicate,
boolean includeValue) |
String |
addLocalEntryListener(EntryListener listener,
Predicate<K,V> predicate,
K key,
boolean includeValue) |
String |
addLocalEntryListener(MapListener listener) |
String |
addLocalEntryListener(MapListener listener,
Predicate<K,V> predicate,
boolean includeValue) |
String |
addLocalEntryListener(MapListener listener,
Predicate<K,V> predicate,
K key,
boolean includeValue) |
String |
addPartitionLostListener(MapPartitionLostListener listener) |
<SuppliedValue,Result> |
aggregate(Supplier<K,V,SuppliedValue> supplier,
Aggregation<K,SuppliedValue,Result> aggregation) |
<SuppliedValue,Result> |
aggregate(Supplier<K,V,SuppliedValue> supplier,
Aggregation<K,SuppliedValue,Result> aggregation,
JobTracker jobTracker) |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
void |
delete(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
Set<Map.Entry<K,V>> |
entrySet(Predicate predicate) |
boolean |
evict(K key) |
void |
evictAll() |
Map<K,Object> |
executeOnEntries(EntryProcessor entryProcessor) |
Map<K,Object> |
executeOnEntries(EntryProcessor entryProcessor,
Predicate predicate) |
Object |
executeOnKey(K key,
EntryProcessor entryProcessor) |
Map<K,Object> |
executeOnKeys(Set<K> keys,
EntryProcessor entryProcessor) |
void |
flush() |
void |
forceUnlock(K key) |
V |
get(Object key) |
Map<K,V> |
getAll(Set<K> keys) |
Future<V> |
getAsync(K key) |
EntryView<K,V> |
getEntryView(K key) |
LocalMapStats |
getLocalMapStats() |
protected long |
getTimeInMillis(long time,
TimeUnit timeunit) |
boolean |
isEmpty() |
boolean |
isLocked(K key) |
Set<K> |
keySet() |
Set<K> |
keySet(Predicate predicate) |
void |
loadAll(boolean replaceExistingValues) |
void |
loadAll(Set<K> keys,
boolean replaceExistingValues) |
Set<K> |
localKeySet() |
Set<K> |
localKeySet(Predicate predicate) |
void |
lock(K key) |
void |
lock(K key,
long leaseTime,
TimeUnit timeUnit) |
protected void |
onDestroy()
Called before proxy is destroyed.
|
protected void |
onShutdown()
Called before client shutdown.
|
V |
put(K key,
V value) |
V |
put(K key,
V value,
long ttl,
TimeUnit timeunit) |
void |
putAll(Map<? extends K,? extends V> m) |
Future<V> |
putAsync(K key,
V value) |
Future<V> |
putAsync(K key,
V value,
long ttl,
TimeUnit timeunit) |
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 key) |
boolean |
remove(Object key,
Object value) |
Future<V> |
removeAsync(K key) |
boolean |
removeEntryListener(String id) |
void |
removeInterceptor(String id) |
boolean |
removePartitionLostListener(String id) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
void |
set(K key,
V value) |
void |
set(K key,
V value,
long ttl,
TimeUnit timeunit) |
int |
size() |
Future |
submitToKey(K key,
EntryProcessor entryProcessor) |
void |
submitToKey(K key,
EntryProcessor entryProcessor,
ExecutionCallback callback) |
String |
toString() |
boolean |
tryLock(K key) |
boolean |
tryLock(K key,
long time,
TimeUnit timeunit) |
boolean |
tryPut(K key,
V value,
long timeout,
TimeUnit timeunit) |
boolean |
tryRemove(K key,
long timeout,
TimeUnit timeunit) |
void |
unlock(K key) |
Collection<V> |
values() |
Collection<V> |
values(Predicate predicate) |
destroy, equals, getClient, getContext, getId, getName, getPartitionKey, getServiceName, hashCode, invoke, invoke, invoke, invokeInterruptibly, invokeOnPartition, listen, listen, onInitialize, setContext, stopListening, throwExceptionIfNull, toData, toObjectclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdestroy, getId, getName, getPartitionKey, getServiceNameprotected static final String NULL_KEY_IS_NOT_ALLOWED
protected static final String NULL_VALUE_IS_NOT_ALLOWED
public boolean containsKey(Object key)
containsKey in interface BaseMap<K,V>containsKey in interface IMap<K,V>containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface IMap<K,V>containsValue in interface Map<K,V>public void delete(Object key)
public void putTransient(K key, V value, long ttl, TimeUnit timeunit)
putTransient in interface IMap<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface BaseMap<K,V>putIfAbsent in interface IMap<K,V>putIfAbsent in interface ConcurrentMap<K,V>public V putIfAbsent(K key, V value, long ttl, TimeUnit timeunit)
putIfAbsent in interface IMap<K,V>public boolean tryLock(K key, long time, TimeUnit timeunit) throws InterruptedException
tryLock in interface IMap<K,V>InterruptedExceptionpublic void forceUnlock(K key)
forceUnlock in interface IMap<K,V>public String addLocalEntryListener(MapListener listener)
addLocalEntryListener in interface IMap<K,V>public String addLocalEntryListener(EntryListener listener)
addLocalEntryListener in interface IMap<K,V>public String addLocalEntryListener(MapListener listener, Predicate<K,V> predicate, boolean includeValue)
addLocalEntryListener in interface IMap<K,V>public String addLocalEntryListener(EntryListener listener, Predicate<K,V> predicate, boolean includeValue)
addLocalEntryListener in interface IMap<K,V>public String addLocalEntryListener(MapListener listener, Predicate<K,V> predicate, K key, boolean includeValue)
addLocalEntryListener in interface IMap<K,V>public String addLocalEntryListener(EntryListener listener, Predicate<K,V> predicate, K key, boolean includeValue)
addLocalEntryListener in interface IMap<K,V>public String addInterceptor(MapInterceptor interceptor)
addInterceptor in interface IMap<K,V>public void removeInterceptor(String id)
removeInterceptor in interface IMap<K,V>public String addEntryListener(MapListener listener, boolean includeValue)
addEntryListener in interface IMap<K,V>public String addEntryListener(EntryListener listener, boolean includeValue)
addEntryListener in interface IMap<K,V>public boolean removeEntryListener(String id)
removeEntryListener in interface IMap<K,V>public String addPartitionLostListener(MapPartitionLostListener listener)
addPartitionLostListener in interface IMap<K,V>public boolean removePartitionLostListener(String id)
removePartitionLostListener in interface IMap<K,V>public String addEntryListener(MapListener listener, K key, boolean includeValue)
addEntryListener in interface IMap<K,V>public String addEntryListener(EntryListener listener, K key, boolean includeValue)
addEntryListener in interface IMap<K,V>public String addEntryListener(MapListener listener, Predicate<K,V> predicate, K key, boolean includeValue)
addEntryListener in interface IMap<K,V>public String addEntryListener(EntryListener listener, Predicate<K,V> predicate, K key, boolean includeValue)
addEntryListener in interface IMap<K,V>public String addEntryListener(MapListener listener, Predicate<K,V> predicate, boolean includeValue)
addEntryListener in interface IMap<K,V>public String addEntryListener(EntryListener listener, Predicate<K,V> predicate, boolean includeValue)
addEntryListener in interface IMap<K,V>public EntryView<K,V> getEntryView(K key)
getEntryView in interface IMap<K,V>public void loadAll(boolean replaceExistingValues)
public Collection<V> values()
public Set<K> localKeySet(Predicate predicate)
localKeySet in interface IMap<K,V>public void addIndex(String attribute, boolean ordered)
public LocalMapStats getLocalMapStats()
getLocalMapStats in interface IMap<K,V>public Object executeOnKey(K key, EntryProcessor entryProcessor)
executeOnKey in interface IMap<K,V>public void submitToKey(K key, EntryProcessor entryProcessor, ExecutionCallback callback)
submitToKey in interface IMap<K,V>public Future submitToKey(K key, EntryProcessor entryProcessor)
submitToKey in interface IMap<K,V>public Map<K,Object> executeOnEntries(EntryProcessor entryProcessor)
executeOnEntries in interface IMap<K,V>public Map<K,Object> executeOnEntries(EntryProcessor entryProcessor, Predicate predicate)
executeOnEntries in interface IMap<K,V>public <SuppliedValue,Result> Result aggregate(Supplier<K,V,SuppliedValue> supplier, Aggregation<K,SuppliedValue,Result> aggregation)
public <SuppliedValue,Result> Result aggregate(Supplier<K,V,SuppliedValue> supplier, Aggregation<K,SuppliedValue,Result> aggregation, JobTracker jobTracker)
public Map<K,Object> executeOnKeys(Set<K> keys, EntryProcessor entryProcessor)
executeOnKeys in interface IMap<K,V>public int size()
public boolean isEmpty()
public void clear()
protected void onDestroy()
ClientProxyonDestroy in class ClientProxyprotected void onShutdown()
ClientProxyonShutdown in class ClientProxyprotected long getTimeInMillis(long time,
TimeUnit timeunit)
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.