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-safeMap
whose keys are kept alive by soft/weakReference
s.
-
-
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 V
putIfAbsent(K key, V value)
boolean
remove(java.lang.Object key, java.lang.Object value)
V
replace(K key, V value)
boolean
replace(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
-
-