Package org.eclipse.net4j.util.ref
Klasse ReferenceValueMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap2<K,V>
org.eclipse.net4j.util.ref.ReferenceValueMap<K,V>
- Alle implementierten Schnittstellen:
ConcurrentMap<K,
,V> Map<K,
V>
- Bekannte direkte Unterklassen:
ReferenceValueMap.Soft
,ReferenceValueMap.Strong
,ReferenceValueMap.Weak
public abstract class ReferenceValueMap<K,V>
extends ReferenceValueMap2<K,V>
implements ConcurrentMap<K,V>
A
ConcurrentMap
implementation that uses KeyedReference
instances (KeyedStrongReference
,
KeyedSoftReference
, KeyedWeakReference
or KeyedPhantomReference
) as its values.
A ReferenceValueMap
can be used to cache mappings until the value of the mapping is no longer
reachable from outside of the map
Note: This map is not synchronized. If it is to be used by multiple threads concurrently the user is responsible for applying proper external synchronization!
- Autor:
- Eike Stepper
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic class
static class
static class
Von Klasse geerbte verschachtelte Klassen/Schnittstellen java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Von Klasse geerbte Methoden org.eclipse.net4j.util.ref.ReferenceValueMap2
clear, containsKey, containsValue, createQueue, createReference, dereference, entrySet, get, internalPurgeQueue, isEmpty, purged, purgeQueue, put, remove, removeAll, size
Von Klasse geerbte Methoden java.util.AbstractMap
clone, equals, hashCode, keySet, putAll, toString, values
Von Klasse geerbte Methoden java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Konstruktordetails
-
ReferenceValueMap
public ReferenceValueMap() -
ReferenceValueMap
-
-
Methodendetails
-
putIfAbsent
- Angegeben von:
putIfAbsent
in SchnittstelleConcurrentMap<K,
V> - Angegeben von:
putIfAbsent
in SchnittstelleMap<K,
V>
-
replace
-
replace
-
remove
-