public class LocalCacheUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
LocalCacheUtils.PutArgs<K,V>
Arguments for a put operation
|
| Constructor and Description |
|---|
LocalCacheUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <K,V> Map<K,V> |
getBulk(Function<Set<K>,Map<K,V>> factory,
Iterable<K> keys,
Function<K,Optional<V>> getFn,
Function<LocalCacheUtils.PutArgs<K,V>,Optional<V>> putIfAbsentFn,
VCacheLock lock)
Performs a bulk get.
|
public static <K,V> Map<K,V> getBulk(Function<Set<K>,Map<K,V>> factory, Iterable<K> keys, Function<K,Optional<V>> getFn, Function<LocalCacheUtils.PutArgs<K,V>,Optional<V>> putIfAbsentFn, VCacheLock lock)
K - the key typeV - the value typefactory - for creating missing valueskeys - the keys to returngetFn - function for getting an existing valueputIfAbsentFn - function for putting a new valuelock - the lock for the cacheCopyright © 2019 Atlassian. All rights reserved.