Class BoundedLocalCache.BoundedLocalManualCache<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.BoundedLocalCache.BoundedLocalManualCache<K,V>
-
- All Implemented Interfaces:
Cache<K,V>
,LocalManualCache<BoundedLocalCache<K,V>,K,V>
,java.io.Serializable
- Direct Known Subclasses:
BoundedLocalCache.BoundedLocalLoadingCache
- Enclosing class:
- BoundedLocalCache<K,V>
static class BoundedLocalCache.BoundedLocalManualCache<K,V> extends java.lang.Object implements LocalManualCache<BoundedLocalCache<K,V>,K,V>, java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) BoundedLocalCache<K,V>
cache
(package private) boolean
isWeighted
(package private) Policy<K,V>
policy
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description BoundedLocalManualCache(Caffeine<K,V> builder)
BoundedLocalManualCache(Caffeine<K,V> builder, CacheLoader<? super K,V> loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BoundedLocalCache<K,V>
cache()
Returns the backingLocalCache
data store.Policy<K,V>
policy()
Returns access to inspect and perform low-level operations on this cache based on its runtime characteristics.private void
readObject(java.io.ObjectInputStream stream)
(package private) java.lang.Object
writeReplace()
-
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.LocalManualCache
asMap, cleanUp, estimatedSize, get, getAllPresent, getIfPresent, invalidate, invalidateAll, invalidateAll, put, putAll, stats
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
cache
final BoundedLocalCache<K,V> cache
-
isWeighted
final boolean isWeighted
-
-
Method Detail
-
cache
public BoundedLocalCache<K,V> cache()
Description copied from interface:LocalManualCache
Returns the backingLocalCache
data store.- Specified by:
cache
in interfaceLocalManualCache<BoundedLocalCache<K,V>,K,V>
-
policy
public Policy<K,V> policy()
Description copied from interface:Cache
Returns 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
private void readObject(java.io.ObjectInputStream stream) throws java.io.InvalidObjectException
- Throws:
java.io.InvalidObjectException
-
writeReplace
java.lang.Object writeReplace()
-
-