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<javax.cache.Cache.Entry<K,V>>, javax.cache.Cache<K, V>
An implementation of JSR-107
Cache backed by a Caffeine loading cache.- Author:
- ben.manes@gmail.com (Ben Manes)
-
Nested Class Summary
Nested classes/interfaces inherited from interface javax.cache.Cache
javax.cache.Cache.Entry<K,V> -
Field Summary
Fields inherited from class CacheProxy
cacheLoader, dispatcher, executor, expiry, inFlight, statistics, ticker -
Constructor Summary
ConstructorsConstructorDescriptionLoadingCacheProxy(String name, Executor executor, javax.cache.CacheManager cacheManager, CaffeineConfiguration<K, V> configuration, LoadingCache<K, Expirable<V>> cache, EventDispatcher<K, V> dispatcher, javax.cache.integration.CacheLoader<K, V> cacheLoader, javax.cache.expiry.ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics) -
Method Summary
Methods inherited from class CacheProxy
clear, close, containsKey, copyMap, copyOf, copyValue, currentTimeMillis, deregisterCacheEntryListener, getAndFilterExpiredEntries, getAndPut, getAndRemove, getAndReplace, getCacheManager, getConfiguration, getConfiguration, getName, getWriteExpireTimeMS, invoke, invokeAll, isClosed, iterator, nanosToMillis, put, putAll, putIfAbsent, putNoCopyOrAwait, registerCacheEntryListener, remove, remove, removeAll, removeAll, replace, replace, requireNotClosed, setAccessExpirationTime, unwrapMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
LoadingCacheProxy
public LoadingCacheProxy(String name, Executor executor, javax.cache.CacheManager cacheManager, CaffeineConfiguration<K, V> configuration, LoadingCache<K, Expirable<V>> cache, EventDispatcher<K, V> dispatcher, javax.cache.integration.CacheLoader<K, V> cacheLoader, javax.cache.expiry.ExpiryPolicy expiry, Ticker ticker, JCacheStatisticsMXBean statistics)
-
-
Method Details
-
get
-
getAll
-
loadAll
-