Class CaffeinatedGuavaLoadingCache<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.guava.CaffeinatedGuavaCache<K,V>
-
- com.github.benmanes.caffeine.guava.CaffeinatedGuavaLoadingCache<K,V>
-
- All Implemented Interfaces:
com.google.common.base.Function<K,V>,com.google.common.cache.Cache<K,V>,com.google.common.cache.LoadingCache<K,V>,java.io.Serializable,java.util.function.Function<K,V>
final class CaffeinatedGuavaLoadingCache<K,V> extends CaffeinatedGuavaCache<K,V> implements com.google.common.cache.LoadingCache<K,V>
A Caffeine-backed loading cache through a Guava facade.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classCaffeinatedGuavaLoadingCache.BulkLoader<K,V>(package private) static classCaffeinatedGuavaLoadingCache.SingleLoader<K,V>-
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.guava.CaffeinatedGuavaCache
CaffeinatedGuavaCache.CacheLoaderException
-
-
Field Summary
Fields Modifier and Type Field Description private LoadingCache<K,V>cache(package private) static java.lang.ThreadLocal<java.lang.Boolean>nullBulkLoad(package private) static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description CaffeinatedGuavaLoadingCache(LoadingCache<K,V> cache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vapply(@NonNull K key)Vget(K key)com.google.common.collect.ImmutableMap<K,V>getAll(java.lang.Iterable<? extends K> keys)VgetUnchecked(K key)voidrefresh(K key)-
Methods inherited from class com.github.benmanes.caffeine.guava.CaffeinatedGuavaCache
asMap, cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, stats
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
nullBulkLoad
static final java.lang.ThreadLocal<java.lang.Boolean> nullBulkLoad
-
serialVersionUID
static final long serialVersionUID
- See Also:
- Constant Field Values
-
cache
private final LoadingCache<K,V> cache
-
-
Constructor Detail
-
CaffeinatedGuavaLoadingCache
CaffeinatedGuavaLoadingCache(LoadingCache<K,V> cache)
-
-
Method Detail
-
getAll
public com.google.common.collect.ImmutableMap<K,V> getAll(java.lang.Iterable<? extends K> keys) throws java.util.concurrent.ExecutionException
-
-