Package org.eclipse.sisu.inject
Class MildConcurrentKeys<K,V>
- java.lang.Object
-
- org.eclipse.sisu.inject.MildKeys<K,V>
-
- org.eclipse.sisu.inject.MildConcurrentKeys<K,V>
-
- All Implemented Interfaces:
java.util.concurrent.ConcurrentMap<K,V>,java.util.Map<K,V>
final class MildConcurrentKeys<K,V> extends MildKeys<K,V> implements java.util.concurrent.ConcurrentMap<K,V>
Thread-safeMapwhose keys are kept alive by soft/weakReferences.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.sisu.inject.MildKeys
MildKeys.EntryItr, MildKeys.KeyItr, MildKeys.Soft<T>, MildKeys.StrongEntry, MildKeys.Weak<T>
-
-
Constructor Summary
Constructors Constructor Description MildConcurrentKeys(java.util.concurrent.ConcurrentMap<java.lang.ref.Reference<K>,V> map, boolean soft)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VputIfAbsent(K key, V value)booleanremove(java.lang.Object key, java.lang.Object value)Vreplace(K key, V value)booleanreplace(K key, V oldValue, V newValue)-
Methods inherited from class org.eclipse.sisu.inject.MildKeys
clear, compact, containsKey, containsValue, entrySet, get, isEmpty, keySet, mildKey, put, putAll, remove, size, tempKey, values
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-