Package org.eclipse.sisu.inject
Class MildConcurrentValues<K,V>
java.lang.Object
org.eclipse.sisu.inject.MildValues<K,V>
org.eclipse.sisu.inject.MildConcurrentValues<K,V>
- All Implemented Interfaces:
ConcurrentMap<K,,V> Map<K,V>
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.sisu.inject.MildValues
MildValues.EntryItr, MildValues.InverseMapping, MildValues.StrongEntry, MildValues.ValueItr -
Field Summary
FieldsFields inherited from class org.eclipse.sisu.inject.MildValues
map, queue -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.eclipse.sisu.inject.MildValues
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, mildValue, put, putAll, remove, size, tempValue, valuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.concurrent.ConcurrentMap
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
-
Field Details
-
concurrentMap
-
-
Constructor Details
-
MildConcurrentValues
MildConcurrentValues(ConcurrentMap<K, Reference<V>> map, boolean soft)
-
-
Method Details
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceConcurrentMap<K,V> - Specified by:
putIfAbsentin interfaceMap<K,V>
-
replace
-
replace
-
remove
-
compact
void compact()Description copied from class:MildValuesCompacts the map by removing cleared values.- Overrides:
compactin classMildValues<K,V>
-