Package org.apache.dubbo.common.utils
Class ConcurrentHashMapUtils
java.lang.Object
org.apache.dubbo.common.utils.ConcurrentHashMapUtils
ConcurrentHashMap util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <K,V> V computeIfAbsent(ConcurrentMap<K, V> map, K key, Function<? super K, ? extends V> func) A temporary workaround for Java 8 ConcurrentHashMap#computeIfAbsent specific performance issue: JDK-8161372.
-
Constructor Details
-
ConcurrentHashMapUtils
public ConcurrentHashMapUtils()
-
-
Method Details
-
computeIfAbsent
public static <K,V> V computeIfAbsent(ConcurrentMap<K, V> map, K key, Function<? super K, ? extends V> func) A temporary workaround for Java 8 ConcurrentHashMap#computeIfAbsent specific performance issue: JDK-8161372.- See Also:
-