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>, Serializable, 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 ClassesModifier and TypeClassDescription(package private) static final class(package private) static classNested classes/interfaces inherited from class CaffeinatedGuavaCache
CaffeinatedGuavaCache.CacheLoaderException -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final LoadingCache<K, V> (package private) static final ThreadLocal<Boolean> (package private) static final long -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class CaffeinatedGuavaCache
asMap, cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, statsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.common.cache.Cache
cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, statsMethods inherited from interface com.google.common.base.Function
equalsMethods inherited from interface com.google.common.cache.LoadingCache
asMap
-
Field Details
-
nullBulkLoad
-
serialVersionUID
static final long serialVersionUID- See Also:
-
cache
-
-
Constructor Details
-
CaffeinatedGuavaLoadingCache
CaffeinatedGuavaLoadingCache(LoadingCache<K, V> cache)
-
-
Method Details
-
get
- Specified by:
getin interfacecom.google.common.cache.LoadingCache<K,V> - Throws:
ExecutionException
-
getUnchecked
-
getAll
public com.google.common.collect.ImmutableMap<K,V> getAll(Iterable<? extends K> keys) throws ExecutionException - Specified by:
getAllin interfacecom.google.common.cache.LoadingCache<K,V> - Throws:
ExecutionException
-
apply
-
refresh
-