Class JCacheLoaderAdapter<K,V>
java.lang.Object
com.github.benmanes.caffeine.jcache.integration.JCacheLoaderAdapter<K,V>
- All Implemented Interfaces:
AsyncCacheLoader<K, Expirable<V>>,CacheLoader<K, @Nullable Expirable<V>>
public final class JCacheLoaderAdapter<K,V>
extends Object
implements CacheLoader<K, @Nullable Expirable<V>>
An adapter from a JCache cache loader to Caffeine's.
-
Constructor Summary
ConstructorsConstructorDescriptionJCacheLoaderAdapter(CacheLoader<K, V> delegate, EventDispatcher<K, V> dispatcher, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.benmanes.caffeine.cache.CacheLoader
asyncLoad, asyncLoadAll, asyncReload, reload
-
Constructor Details
-
JCacheLoaderAdapter
public JCacheLoaderAdapter(CacheLoader<K, V> delegate, EventDispatcher<K, V> dispatcher, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics)
-
-
Method Details
-
setCache
Sets the cache instance that was created with this loader.- Parameters:
cache- the cache that uses this loader
-
load
-
loadAll
-