Class BoundedLocalCache.BoundedLocalAsyncLoadingCache<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.LocalAsyncLoadingCache<BoundedLocalCache<K,CompletableFuture<V>>,K,V>
com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalAsyncLoadingCache<K,V>
- All Implemented Interfaces:
AsyncLoadingCache<K,
,V> Serializable
- Enclosing class:
- BoundedLocalCache<K,
V>
static final class BoundedLocalCache.BoundedLocalAsyncLoadingCache<K,V>
extends LocalAsyncLoadingCache<BoundedLocalCache<K,CompletableFuture<V>>,K,V>
implements Serializable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.benmanes.caffeine.cache.LocalAsyncLoadingCache
LocalAsyncLoadingCache.AsMapView<K,
V>, LocalAsyncLoadingCache.LoadingCacheView -
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean
private static final long
Fields inherited from class com.github.benmanes.caffeine.cache.LocalAsyncLoadingCache
cache, canBulkLoad, loader, localCacheView, logger
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedLocalAsyncLoadingCache
(Caffeine<K, V> builder, AsyncCacheLoader<? super K, V> loader) -
Method Summary
Modifier and TypeMethodDescriptionprivate static <K,
V> CacheLoader<K, V> asyncLoader
(AsyncCacheLoader<? super K, V> loader, Caffeine<?, ?> builder) policy()
Returns the policy supported by this implementation and its configuration.private void
readObject
(ObjectInputStream stream) (package private) Object
Methods inherited from class com.github.benmanes.caffeine.cache.LocalAsyncLoadingCache
get, get, get, get, getAll, getIfPresent, put, synchronous
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
isWeighted
final boolean isWeighted -
policy
-
-
Constructor Details
-
BoundedLocalAsyncLoadingCache
-
-
Method Details
-
asyncLoader
private static <K,V> CacheLoader<K,V> asyncLoader(AsyncCacheLoader<? super K, V> loader, Caffeine<?, ?> builder) -
policy
Description copied from class:LocalAsyncLoadingCache
Returns the policy supported by this implementation and its configuration.- Specified by:
policy
in classLocalAsyncLoadingCache<BoundedLocalCache<K,
CompletableFuture<V>>, K, V>
-
readObject
- Throws:
InvalidObjectException
-
writeReplace
Object writeReplace()
-