final class MildConcurrentValues<K,V> extends MildValues<K,V> implements java.util.concurrent.ConcurrentMap<K,V>
Map
whose values are kept alive by soft/weak Reference
s.MildValues.EntryItr, MildValues.InverseMapping, MildValues.StrongEntry, MildValues.ValueItr
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<K,java.lang.ref.Reference<V>> |
concurrentMap |
map, queue
Constructor and Description |
---|
MildConcurrentValues(java.util.concurrent.ConcurrentMap<K,java.lang.ref.Reference<V>> map,
boolean soft) |
Modifier and Type | Method and Description |
---|---|
(package private) void |
compact()
Compacts the map by removing cleared values.
|
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) |
clear, containsKey, containsValue, entrySet, get, isEmpty, keySet, mildValue, put, putAll, remove, size, tempValue, values
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public boolean remove(java.lang.Object key, java.lang.Object value)
void compact()
MildValues
compact
in class MildValues<K,V>