Class BoundedLocalCache.BoundedLocalManualCache<K,V>
java.lang.Object
com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalManualCache<K,V>
- All Implemented Interfaces:
Cache<K,V>, LocalManualCache<K, V>, Serializable
- Direct Known Subclasses:
BoundedLocalCache.BoundedLocalLoadingCache
- Enclosing class:
BoundedLocalCache<K,V>
static class BoundedLocalCache.BoundedLocalManualCache<K,V>
extends Object
implements LocalManualCache<K,V>, Serializable
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final BoundedLocalCache<K, V> (package private) final booleanprivate static final long -
Constructor Summary
ConstructorsConstructorDescriptionBoundedLocalManualCache(Caffeine<K, V> builder) BoundedLocalManualCache(Caffeine<K, V> builder, @Nullable CacheLoader<? super K, V> loader) -
Method Summary
Modifier and TypeMethodDescriptioncache()Returns the backingLocalCachedata store.policy()Returns access to inspect and perform low-level operations on this cache based on its runtime characteristics.private voidreadObject(ObjectInputStream stream) (package private) ObjectMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface LocalManualCache
asMap, bulkLoad, cleanUp, estimatedSize, get, getAll, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, stats
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
cache
-
isWeighted
final boolean isWeighted -
policy
-
-
Constructor Details
-
BoundedLocalManualCache
-
BoundedLocalManualCache
-
-
Method Details
-
cache
Description copied from interface:LocalManualCacheReturns the backingLocalCachedata store.- Specified by:
cachein interfaceLocalManualCache<K,V>
-
policy
Description copied from interface:CacheReturns access to inspect and perform low-level operations on this cache based on its runtime characteristics. These operations are optional and dependent on how the cache was constructed and what abilities the implementation exposes. -
readObject
- Throws:
InvalidObjectException
-
writeReplace
Object writeReplace()
-