Package org.apfloat
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 java.util.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 java.util.AbstractMap
clone, containsKey, containsValue, equals, hashCode, keySet, putAll, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
map
-
queue
-
-
Constructor Details
-
ConcurrentWeakHashMap
public ConcurrentWeakHashMap()
-
-
Method Details
-
clear
public void clear() -
entrySet
-
get
-
put
-
remove
-
isEmpty
public boolean isEmpty() -
size
public int size() -
wrap
-
expungeStaleEntries
private void expungeStaleEntries()
-