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