public final class JCacheLoaderAdapter<K,V> extends Object implements CacheLoader<K,Expirable<V>>
| Constructor and Description |
|---|
JCacheLoaderAdapter(CacheLoader<K,V> delegate,
EventDispatcher<K,V> dispatcher,
ExpiryPolicy expiry,
Ticker ticker,
JCacheStatisticsMXBean statistics) |
| Modifier and Type | Method and Description |
|---|---|
@Nullable Expirable<V> |
load(K key) |
Map<K,Expirable<V>> |
loadAll(Iterable<? extends K> keys) |
void |
setCache(CacheProxy<K,V> cache)
Sets the cache instance that was created with this loader.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasyncLoad, asyncLoadAll, asyncReload, reloadpublic JCacheLoaderAdapter(CacheLoader<K,V> delegate, EventDispatcher<K,V> dispatcher, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics)