K - keyV - valuepublic class ClientMultiMapProxy<K,V> extends ClientProxy implements MultiMap<K,V>
MultiMap.| Modifier and Type | Field and Description |
|---|---|
protected static String |
NULL_KEY_IS_NOT_ALLOWED |
protected static String |
NULL_VALUE_IS_NOT_ALLOWED |
name| Constructor and Description |
|---|
ClientMultiMapProxy(String serviceName,
String name,
ClientContext context) |
| Modifier and Type | Method and Description |
|---|---|
String |
addEntryListener(EntryListener<K,V> listener,
boolean includeValue) |
String |
addEntryListener(EntryListener<K,V> listener,
K key,
boolean includeValue) |
String |
addLocalEntryListener(EntryListener<K,V> 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 |
containsEntry(K key,
V value) |
boolean |
containsKey(K key) |
boolean |
containsValue(Object value) |
void |
delete(Object key) |
Set<Map.Entry<K,V>> |
entrySet() |
void |
forceUnlock(K key) |
Collection<V> |
get(K key) |
LocalMultiMapStats |
getLocalMultiMapStats() |
protected long |
getTimeInMillis(long time,
TimeUnit timeunit) |
boolean |
isLocked(K key) |
Set<K> |
keySet() |
Set<K> |
localKeySet() |
void |
lock(K key) |
void |
lock(K key,
long leaseTime,
TimeUnit timeUnit) |
protected void |
onDestroy()
Called before proxy is destroyed.
|
protected void |
onInitialize()
Called when proxy is created.
|
boolean |
put(K key,
V value) |
Collection<V> |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
boolean |
removeEntryListener(String registrationId) |
int |
size() |
String |
toString() |
boolean |
tryLock(K key) |
boolean |
tryLock(K key,
long time,
TimeUnit timeunit) |
boolean |
tryLock(K key,
long time,
TimeUnit timeunit,
long leaseTime,
TimeUnit leaseUnit) |
void |
unlock(K key) |
int |
valueCount(K key) |
Collection<V> |
values() |
deregisterListener, destroy, destroyLocally, destroyRemotely, equals, getClient, getConnectedServerVersion, getContext, getDistributedObjectName, getId, getName, getPartitionKey, getSerializationService, getServiceName, hashCode, invoke, invoke, invokeOnAddress, invokeOnPartition, invokeOnPartitionInterruptibly, onShutdown, postDestroy, preDestroy, registerListener, setContext, toData, toObjectclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroy, getName, getPartitionKey, getServiceNameprotected static final String NULL_KEY_IS_NOT_ALLOWED
protected static final String NULL_VALUE_IS_NOT_ALLOWED
public ClientMultiMapProxy(String serviceName, String name, ClientContext context)
public Collection<V> get(K key)
public Collection<V> remove(Object key)
public boolean containsKey(K key)
containsKey in interface MultiMap<K,V>public boolean containsValue(Object value)
containsValue in interface MultiMap<K,V>public boolean containsEntry(K key, V value)
containsEntry in interface MultiMap<K,V>public int size()
public int valueCount(K key)
valueCount in interface BaseMultiMap<K,V>valueCount in interface MultiMap<K,V>public String addLocalEntryListener(EntryListener<K,V> listener)
addLocalEntryListener in interface MultiMap<K,V>public String addEntryListener(EntryListener<K,V> listener, boolean includeValue)
addEntryListener in interface MultiMap<K,V>public boolean removeEntryListener(String registrationId)
removeEntryListener in interface MultiMap<K,V>public String addEntryListener(EntryListener<K,V> listener, K key, boolean includeValue)
addEntryListener in interface MultiMap<K,V>public boolean tryLock(K key, long time, TimeUnit timeunit) throws InterruptedException
tryLock in interface MultiMap<K,V>InterruptedExceptionpublic boolean tryLock(K key, long time, TimeUnit timeunit, long leaseTime, TimeUnit leaseUnit) throws InterruptedException
tryLock in interface MultiMap<K,V>InterruptedExceptionpublic void forceUnlock(K key)
forceUnlock in interface MultiMap<K,V>public LocalMultiMapStats getLocalMultiMapStats()
getLocalMultiMapStats in interface MultiMap<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)
protected void onDestroy()
ClientProxyonDestroy in class ClientProxyprotected long getTimeInMillis(long time,
TimeUnit timeunit)
protected void onInitialize()
ClientProxyonInitialize in class ClientProxyCopyright © 2020 Hazelcast, Inc.. All Rights Reserved.