Package com.liferay.petra.concurrent
Class ConcurrentReferenceValueHashMap<K,V>
java.lang.Object
java.util.AbstractMap<K,V>
com.liferay.petra.concurrent.ConcurrentMapperHashMap<K,K,V,Reference<V>>
com.liferay.petra.concurrent.ConcurrentReferenceValueHashMap<K,V>
- All Implemented Interfaces:
Serializable
,ConcurrentMap<K,
,V> Map<K,
V>
public class ConcurrentReferenceValueHashMap<K,V>
extends ConcurrentMapperHashMap<K,K,V,Reference<V>>
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from class com.liferay.petra.concurrent.ConcurrentMapperHashMap
entrySet, innerConcurrentMap, keySet, values
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentReferenceValueHashMap
(int initialCapacity, float loadFactor, int concurrencyLevel, com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) ConcurrentReferenceValueHashMap
(int initialCapacity, com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) ConcurrentReferenceValueHashMap
(com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) ConcurrentReferenceValueHashMap
(ConcurrentMap<K, Reference<V>> innerConcurrentMap, com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) -
Method Summary
Modifier and TypeMethodDescriptionprotected K
protected K
mapKeyForQuery
(K key) mapValueForQuery
(V value) protected K
protected K
unmapKeyForQuery
(K key) protected V
unmapValue
(Reference<V> reference) protected V
unmapValueForQuery
(Reference<V> reference) Methods inherited from class com.liferay.petra.concurrent.ConcurrentMapperHashMap
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.concurrent.ConcurrentMap
forEach, getOrDefault, merge, replaceAll
-
Constructor Details
-
ConcurrentReferenceValueHashMap
public ConcurrentReferenceValueHashMap(ConcurrentMap<K, Reference<V>> innerConcurrentMap, com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) -
ConcurrentReferenceValueHashMap
public ConcurrentReferenceValueHashMap(com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) -
ConcurrentReferenceValueHashMap
public ConcurrentReferenceValueHashMap(int initialCapacity, com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory) -
ConcurrentReferenceValueHashMap
public ConcurrentReferenceValueHashMap(int initialCapacity, float loadFactor, int concurrencyLevel, com.liferay.petra.memory.FinalizeManager.ReferenceFactory referenceFactory)
-
-
Method Details
-
mapKey
-
mapKeyForQuery
- Specified by:
mapKeyForQuery
in classConcurrentMapperHashMap<K,
K, V, Reference<V>>
-
mapValue
-
mapValueForQuery
- Specified by:
mapValueForQuery
in classConcurrentMapperHashMap<K,
K, V, Reference<V>>
-
unmapKey
-
unmapKeyForQuery
- Specified by:
unmapKeyForQuery
in classConcurrentMapperHashMap<K,
K, V, Reference<V>>
-
unmapValue
- Specified by:
unmapValue
in classConcurrentMapperHashMap<K,
K, V, Reference<V>>
-
unmapValueForQuery
- Specified by:
unmapValueForQuery
in classConcurrentMapperHashMap<K,
K, V, Reference<V>>
-