public final class ConcurrencyUtil extends Object
Modifier and Type | Method and Description |
---|---|
static <K,V> V |
getOrPutIfAbsent(ConcurrentMap<K,V> map,
K key,
ConstructorFunction<K,V> func) |
static <K,V> V |
getOrPutSynchronized(ConcurrentMap<K,V> map,
K key,
Object mutex,
ConstructorFunction<K,V> func) |
public static <K,V> V getOrPutSynchronized(ConcurrentMap<K,V> map, K key, Object mutex, ConstructorFunction<K,V> func)
public static <K,V> V getOrPutIfAbsent(ConcurrentMap<K,V> map, K key, ConstructorFunction<K,V> func)
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.