private static final class CacheLoader.FunctionToCacheLoader<K,V> extends CacheLoader<K,V> implements java.io.Serializable
CacheLoader.InvalidCacheLoadException, CacheLoader.UnsupportedLoadingOperationException
Modifier and Type | Field and Description |
---|---|
private Function<K,V> |
computingFunction |
private static long |
serialVersionUID |
Constructor and Description |
---|
FunctionToCacheLoader(Function<K,V> computingFunction) |
Modifier and Type | Method and Description |
---|---|
V |
load(K key)
Computes or retrieves the value corresponding to
key . |
asyncReloading, from, from, loadAll, reload
private static final long serialVersionUID
public V load(K key)
CacheLoader
key
.load
in class CacheLoader<K,V>
key
- the non-null key whose value should be loadedkey
; must not be null