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