K - key type.V - value type.public class ConcurrentElasticHashMap<K,V> extends Object implements com.hazelcast.elastic.map.ElasticMap<K,V>, ConcurrentMap<K,V>
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ConcurrentElasticHashMap.Segment<V>
A segment of hash buckets for this map.
|
| Constructor and Description |
|---|
ConcurrentElasticHashMap(EnterpriseSerializationService ss,
com.hazelcast.internal.memory.MemoryAllocator malloc) |
ConcurrentElasticHashMap(int initialCapacity,
float loadFactor,
int concurrencyLevel,
EnterpriseSerializationService ss,
com.hazelcast.internal.memory.MemoryAllocator malloc) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
boolean |
delete(K key) |
void |
dispose() |
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) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
protected ConcurrentElasticHashMap.Segment<V> |
segmentFor(com.hazelcast.nio.serialization.Data key)
Returns the segment that should be used for key with given hash.
|
boolean |
set(K key,
V value) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic ConcurrentElasticHashMap(EnterpriseSerializationService ss, com.hazelcast.internal.memory.MemoryAllocator malloc)
public ConcurrentElasticHashMap(int initialCapacity,
float loadFactor,
int concurrencyLevel,
EnterpriseSerializationService ss,
com.hazelcast.internal.memory.MemoryAllocator malloc)
protected final ConcurrentElasticHashMap.Segment<V> segmentFor(com.hazelcast.nio.serialization.Data key)
key - the key.public V putIfAbsent(K key, V value)
putIfAbsent in interface com.hazelcast.elastic.map.ElasticMap<K,V>putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>public boolean delete(K key)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public void dispose()
dispose in interface com.hazelcast.nio.DisposableCopyright © 2022 Hazelcast, Inc.. All Rights Reserved.