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,
Consumer<LocalCacheUtils.PutArgs<K,V>> putFn,
RecursionDetector<K> recursionDetector)
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, Consumer<LocalCacheUtils.PutArgs<K,V>> putFn, RecursionDetector<K> recursionDetector)
K - the key typeV - the value typefactory - for creating missing valueskeys - the keys to returngetFn - function for getting an existing valueputFn - function for putting a new valuerecursionDetector - used for detecting recursive callsCopyright © 2016 Atlassian. All rights reserved.