K - The key classV - The value classpublic class ConcurrentKeyDeserMap<K,V> extends Object implements ConcurrentMap<K,V>
Using this class can drastically reduce performance as keys are serialized or deserialized on each operation. Calling bulk methods is also not very efficient, as all keys need to be converted. Worst method to call is entrySet()
| Constructor and Description |
|---|
ConcurrentKeyDeserMap(ConcurrentMap<ByteArray,V> backingMap,
CacheWriteMode writeMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet()
Note that this method is quite inefficient.
|
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) |
int |
size() |
Collection<V> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAllpublic ConcurrentKeyDeserMap(ConcurrentMap<ByteArray,V> backingMap, CacheWriteMode writeMode)
public boolean containsKey(Object key)
containsKey in interface Map<K,V>public boolean containsValue(Object value)
containsValue in interface Map<K,V>public Set<Map.Entry<K,V>> entrySet()
public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in interface Map<K,V>Copyright © 2018 trivago. All rights reserved.