Class BoundedLocalCache.BoundedLocalLoadingCache<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalManualCache<K,V>
com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalLoadingCache<K,V>
- All Implemented Interfaces:
Cache<K,
,V> LoadingCache<K,
,V> LocalLoadingCache<K,
,V> LocalManualCache<K,
,V> Serializable
- Enclosing class:
BoundedLocalCache<K,
V>
static final class BoundedLocalCache.BoundedLocalLoadingCache<K,V>
extends BoundedLocalCache.BoundedLocalManualCache<K,V>
implements LocalLoadingCache<K,V>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final long
Fields inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalManualCache
cache, isWeighted, policy
Fields inherited from interface com.github.benmanes.caffeine.cache.LocalLoadingCache
logger
-
Constructor Summary
ConstructorsConstructorDescriptionBoundedLocalLoadingCache
(Caffeine<K, V> builder, CacheLoader<? super K, V> loader) -
Method Summary
Modifier and TypeMethodDescriptionReturns theCacheLoader.loadAll(java.lang.Iterable<? extends K>)
as a mapping function, if implemented.CacheLoader
<? super K, V> Returns theCacheLoader
used by this cache.Returns theCacheLoader.load(K)
as a mapping function.private void
readObject
(ObjectInputStream stream) (package private) Object
Methods inherited from class com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalManualCache
cache, policy
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.github.benmanes.caffeine.cache.LocalLoadingCache
get, getAll, loadSequentially, refresh
Methods inherited from interface com.github.benmanes.caffeine.cache.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
-
bulkMappingFunction
-
-
Constructor Details
-
BoundedLocalLoadingCache
-
-
Method Details
-
cacheLoader
Description copied from interface:LocalLoadingCache
Returns theCacheLoader
used by this cache.- Specified by:
cacheLoader
in interfaceLocalLoadingCache<K,
V>
-
mappingFunction
Description copied from interface:LocalLoadingCache
Returns theCacheLoader.load(K)
as a mapping function.- Specified by:
mappingFunction
in interfaceLocalLoadingCache<K,
V>
-
bulkMappingFunction
Description copied from interface:LocalLoadingCache
Returns theCacheLoader.loadAll(java.lang.Iterable<? extends K>)
as a mapping function, if implemented.- Specified by:
bulkMappingFunction
in interfaceLocalLoadingCache<K,
V>
-
readObject
- Throws:
InvalidObjectException
-
writeReplace
Object writeReplace()- Overrides:
writeReplace
in classBoundedLocalCache.BoundedLocalManualCache<K,
V>
-