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 class
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.guava.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 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
Methods inherited from interface com.google.common.cache.Cache
cleanUp, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, size, stats
Methods inherited from interface com.google.common.base.Function
equals
Methods 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:
get
in 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:
getAll
in interfacecom.google.common.cache.LoadingCache<K,
V> - Throws:
ExecutionException
-
apply
-
refresh
-