K
- V
- class ReferenceConcurrentMap<K,V> extends ReferenceMap<K,V> implements java.util.concurrent.ConcurrentMap<K,V>
Ref
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Modifier and Type | Field and Description |
---|---|
private java.util.concurrent.ConcurrentMap<Referrer<K>,Referrer<V>> |
map |
Constructor and Description |
---|
ReferenceConcurrentMap(java.util.concurrent.ConcurrentMap<Referrer<K>,Referrer<V>> map,
ReferenceQueuingFactory<K,Referrer<K>> krqf,
ReferenceQueuingFactory<V,Referrer<V>> vrqf,
Ref key,
Ref val) |
ReferenceConcurrentMap(java.util.concurrent.ConcurrentMap<Referrer<K>,Referrer<V>> map,
Ref key,
Ref val,
boolean gcThreads,
long gcKeyCycle,
long gcValCycle) |
Modifier and Type | Method and Description |
---|---|
V |
putIfAbsent(K key,
V value) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
clear, containsKey, containsValue, entrySet, get, getKeyRQF, getValRQF, isEmpty, keyRef, keySet, processQueue, put, remove, size, valRef, values, wrapKey, wrapVal
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, replaceAll
private final java.util.concurrent.ConcurrentMap<Referrer<K>,Referrer<V>> map
ReferenceConcurrentMap(java.util.concurrent.ConcurrentMap<Referrer<K>,Referrer<V>> map, Ref key, Ref val, boolean gcThreads, long gcKeyCycle, long gcValCycle)
ReferenceConcurrentMap(java.util.concurrent.ConcurrentMap<Referrer<K>,Referrer<V>> map, ReferenceQueuingFactory<K,Referrer<K>> krqf, ReferenceQueuingFactory<V,Referrer<V>> vrqf, Ref key, Ref val)
public V putIfAbsent(K key, V value)
putIfAbsent
in interface java.util.concurrent.ConcurrentMap<K,V>
putIfAbsent
in interface Map<K,V>
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.