K - the keys type.V - the values type.public class HazelcastClusterMap<K,V> extends Object implements ClusterMap<K,V>
IMap implementing ClusterMap. This is the implementation returned by
HazelcastClusterManager.getMap(String).| Constructor and Description |
|---|
HazelcastClusterMap(com.hazelcast.core.IMap<K,V> hazelcastInstanceMap) |
| Modifier and Type | Method and Description |
|---|---|
String |
addEntryListener(EntryListener<K,V> listener)
Adds a
EntryListener for this map. |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
boolean |
removeEntryListener(UUID id)
Removes the specified entry listener.
|
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic String addEntryListener(EntryListener<K,V> listener)
ClusterMapEntryListener for this map.
To receive an event, you should implement a corresponding EntryListener sub-interface for that event.
addEntryListener in interface ClusterMap<K,V>listener - EntryListener for this mapEntryListenerpublic boolean removeEntryListener(UUID id)
ClusterMapReturns silently if there is no such listener added before.
removeEntryListener in interface ClusterMap<K,V>id - ID of registered listenerpublic boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>Copyright © 2006–2025 MuleSoft, Inc.. All rights reserved.