Class ConcurrentWeakHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.apfloat.ConcurrentWeakHashMap<K,V>
- All Implemented Interfaces:
Map<K,V>
Combination of WeakHashMap and ConcurrentHashMap,
providing weak keys and non-blocking access.
- Since:
- 1.5
- Version:
- 1.9.0
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ConcurrentHashMap<ConcurrentWeakHashMap.Key, V> private ReferenceQueue<Object> -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class AbstractMap
clone, containsKey, containsValue, equals, hashCode, keySet, putAll, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
map
-
queue
-
-
Constructor Details
-
ConcurrentWeakHashMap
public ConcurrentWeakHashMap()
-
-
Method Details
-
clear
-
entrySet
-
get
-
put
-
remove
-
isEmpty
-
size
-
wrap
-
expungeStaleEntries
private void expungeStaleEntries()
-