Class LoadingCacheProxy<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.jcache.CacheProxy<K,V>
-
- com.github.benmanes.caffeine.jcache.LoadingCacheProxy<K,V>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterable<Cache.Entry<K,V>>,Cache<K,V>
public final class LoadingCacheProxy<K,V> extends CacheProxy<K,V>
An implementation of JSR-107Cachebacked by a Caffeine loading cache.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.jcache.CacheProxy
CacheProxy.NullCompletionListener
-
-
Field Summary
-
Fields inherited from class com.github.benmanes.caffeine.jcache.CacheProxy
cacheLoader, dispatcher, executor, inFlight, statistics, ticker
-
-
Constructor Summary
Constructors Constructor Description LoadingCacheProxy(String name, Executor executor, CacheManager cacheManager, CaffeineConfiguration<K,V> configuration, LoadingCache<K,Expirable<V>> cache, EventDispatcher<K,V> dispatcher, CacheLoader<K,V> cacheLoader, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Vget(K key)Map<K,V>getAll(Set<? extends K> keys)voidloadAll(Set<? extends K> keys, boolean replaceExistingValues, CompletionListener completionListener)-
Methods inherited from class com.github.benmanes.caffeine.jcache.CacheProxy
clear, close, containsKey, copyMap, copyOf, copyValue, currentTimeMillis, deregisterCacheEntryListener, getAndFilterExpiredEntries, getAndPut, getAndRemove, getAndReplace, getCacheManager, getConfiguration, getName, getWriteExpireTimeMS, invoke, invokeAll, isClosed, iterator, nanosToMillis, put, putAll, putIfAbsent, putNoCopyOrAwait, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, requireNotClosed, setAccessExpireTime, unwrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
LoadingCacheProxy
public LoadingCacheProxy(String name, Executor executor, CacheManager cacheManager, CaffeineConfiguration<K,V> configuration, LoadingCache<K,Expirable<V>> cache, EventDispatcher<K,V> dispatcher, CacheLoader<K,V> cacheLoader, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics)
-
-