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<UnboundedLocalCache<K,V>,K,V>
,LocalManualCache<UnboundedLocalCache<K,V>,K,V>
,java.io.Serializable
- Enclosing class:
- UnboundedLocalCache<K,V>
static final class UnboundedLocalCache.UnboundedLocalLoadingCache<K,V> extends UnboundedLocalCache.UnboundedLocalManualCache<K,V> implements LocalLoadingCache<UnboundedLocalCache<K,V>,K,V>
-
-
Field Summary
Fields Modifier and Type Field Description (package private) boolean
hasBulkLoader
(package private) CacheLoader<? super K,V>
loader
(package private) java.util.function.Function<K,V>
mappingFunction
private static long
serialVersionUID
-
Fields inherited from class com.github.benmanes.caffeine.cache.UnboundedLocalCache.UnboundedLocalManualCache
cache, policy
-
Fields inherited from interface com.github.benmanes.caffeine.cache.LocalLoadingCache
logger
-
-
Constructor Summary
Constructors Constructor Description UnboundedLocalLoadingCache(Caffeine<K,V> builder, CacheLoader<? super K,V> loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheLoader<? super K,V>
cacheLoader()
Returns theCacheLoader
used by this cache.boolean
hasBulkLoader()
Returns whether the cache loader supports bulk loading.java.util.function.Function<K,V>
mappingFunction()
Returns theCacheLoader
as a mapping function.private void
readObject(java.io.ObjectInputStream stream)
(package private) java.lang.Object
writeReplace()
-
Methods inherited from class com.github.benmanes.caffeine.cache.UnboundedLocalCache.UnboundedLocalManualCache
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
bulkLoad, get, getAll, hasLoadAll, loadInBulk, loadSequentially, refresh
-
Methods inherited from interface com.github.benmanes.caffeine.cache.LocalManualCache
asMap, cache, cleanUp, estimatedSize, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, stats
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
loader
final CacheLoader<? super K,V> loader
-
hasBulkLoader
final boolean hasBulkLoader
-
-
Method Detail
-
cacheLoader
public CacheLoader<? super K,V> cacheLoader()
Description copied from interface:LocalLoadingCache
Returns theCacheLoader
used by this cache.- Specified by:
cacheLoader
in interfaceLocalLoadingCache<UnboundedLocalCache<K,V>,K,V>
-
mappingFunction
public java.util.function.Function<K,V> mappingFunction()
Description copied from interface:LocalLoadingCache
Returns theCacheLoader
as a mapping function.- Specified by:
mappingFunction
in interfaceLocalLoadingCache<UnboundedLocalCache<K,V>,K,V>
-
hasBulkLoader
public boolean hasBulkLoader()
Description copied from interface:LocalLoadingCache
Returns whether the cache loader supports bulk loading.- Specified by:
hasBulkLoader
in interfaceLocalLoadingCache<UnboundedLocalCache<K,V>,K,V>
-
writeReplace
java.lang.Object writeReplace()
- Overrides:
writeReplace
in classUnboundedLocalCache.UnboundedLocalManualCache<K,V>
-
readObject
private void readObject(java.io.ObjectInputStream stream) throws java.io.InvalidObjectException
- Throws:
java.io.InvalidObjectException
-
-