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>
An implementation of JSR-107
Cache backed by a Caffeine loading cache.-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.jcache.CacheProxy
CacheProxy.NullCompletionListener, CacheProxy.PutResult<V>Nested classes/interfaces inherited from interface javax.cache.Cache
Cache.Entry<K,V> -
Field Summary
Fields inherited from class com.github.benmanes.caffeine.jcache.CacheProxy
cacheLoader, dispatcher, executor, inFlight, statistics, ticker -
Constructor Summary
ConstructorsConstructorDescriptionLoadingCacheProxy(String name, Executor executor, CacheManager cacheManager, CaffeineConfiguration<K, V> configuration, LoadingCache<K, @Nullable Expirable<V>> cache, EventDispatcher<K, V> dispatcher, CacheLoader<K, V> cacheLoader, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics) -
Method Summary
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, getWriteExpireTimeMillis, invoke, invokeAll, isClosed, iterator, nanosToMillis, put, putAll, putIfAbsent, putNoCopyOrAwait, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, requireNotClosed, setAccessExpireTime, unwrapMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
LoadingCacheProxy
public LoadingCacheProxy(String name, Executor executor, CacheManager cacheManager, CaffeineConfiguration<K, V> configuration, LoadingCache<K, @Nullable Expirable<V>> cache, EventDispatcher<K, V> dispatcher, CacheLoader<K, V> cacheLoader, ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics)
-
-
Method Details
-
get
-
getAll
-
loadAll
-