Class UnboundedLocalCache.UnboundedLocalLoadingCache<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.UnboundedLocalCache.UnboundedLocalManualCache<K,V>
com.github.benmanes.caffeine.cache.UnboundedLocalCache.UnboundedLocalLoadingCache<K,V>
- All Implemented Interfaces:
Cache<K,V>, LoadingCache<K, V>, LocalLoadingCache<K, V>, LocalManualCache<K, V>, Serializable
- Enclosing class:
UnboundedLocalCache<K,V>
static final class UnboundedLocalCache.UnboundedLocalLoadingCache<K,V>
extends UnboundedLocalCache.UnboundedLocalManualCache<K,V>
implements LocalLoadingCache<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CacheLoader<? super K, V> private static final longFields inherited from class UnboundedLocalCache.UnboundedLocalManualCache
cache, policyFields inherited from interface LocalLoadingCache
logger -
Constructor Summary
ConstructorsConstructorDescriptionUnboundedLocalLoadingCache(Caffeine<K, V> builder, CacheLoader<? super K, V> loader) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCacheLoader.loadAll(Iterable)as a mapping function, if implemented.CacheLoader<? super K, V> Returns theCacheLoaderused by this cache.Returns theCacheLoader.load(K)as a mapping function.private voidreadObject(ObjectInputStream stream) (package private) ObjectMethods inherited from class UnboundedLocalCache.UnboundedLocalManualCache
cache, policyMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LocalLoadingCache
get, getAll, loadSequentially, refreshMethods inherited from interface LocalManualCache
asMap, bulkLoad, cache, cleanUp, estimatedSize, get, getAll, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, stats
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
mappingFunction
-
loader
-
bulkMappingFunction
-
-
Constructor Details
-
UnboundedLocalLoadingCache
-
-
Method Details
-
cacheLoader
Description copied from interface:LocalLoadingCacheReturns theCacheLoaderused by this cache.- Specified by:
cacheLoaderin interfaceLocalLoadingCache<K,V>
-
mappingFunction
Description copied from interface:LocalLoadingCacheReturns theCacheLoader.load(K)as a mapping function.- Specified by:
mappingFunctionin interfaceLocalLoadingCache<K,V>
-
bulkMappingFunction
Description copied from interface:LocalLoadingCacheReturns theCacheLoader.loadAll(Iterable)as a mapping function, if implemented.- Specified by:
bulkMappingFunctionin interfaceLocalLoadingCache<K,V>
-
writeReplace
Object writeReplace()- Overrides:
writeReplacein classUnboundedLocalCache.UnboundedLocalManualCache<K,V>
-
readObject
- Throws:
InvalidObjectException
-