Class BlockingConcurrentHashMap<K,V>
- java.lang.Object
-
- com.epam.reportportal.karate.utils.BlockingConcurrentHashMap<K,V>
-
- Type Parameters:
K- a key type for the mapV- a value type to store
public class BlockingConcurrentHashMap<K,V> extends java.lang.ObjectThis class ensures thatMap.computeIfAbsent(Object, Function)is called only once for the same key. It has inner blocking timeout of 1 minute to wait for the value to be computed.
-
-
Constructor Summary
Constructors Constructor Description BlockingConcurrentHashMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcomputeIfAbsent(K key, java.util.function.Function<K,V> mappingFunction)Vget(K key)Vremove(K key)
-