Class UnboundedLocalCache.UnboundedLocalManualCache<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.UnboundedLocalCache.UnboundedLocalManualCache<K,V>
-
- All Implemented Interfaces:
Cache<K,V>
,LocalManualCache<UnboundedLocalCache<K,V>,K,V>
,java.io.Serializable
- Direct Known Subclasses:
UnboundedLocalCache.UnboundedLocalLoadingCache
- Enclosing class:
- UnboundedLocalCache<K,V>
static class UnboundedLocalCache.UnboundedLocalManualCache<K,V> extends java.lang.Object implements LocalManualCache<UnboundedLocalCache<K,V>,K,V>, java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) UnboundedLocalCache<K,V>
cache
(package private) Policy<K,V>
policy
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description UnboundedLocalManualCache(Caffeine<K,V> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UnboundedLocalCache<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 UnboundedLocalCache<K,V> cache
-
-
Method Detail
-
cache
public UnboundedLocalCache<K,V> cache()
Description copied from interface:LocalManualCache
Returns the backingLocalCache
data store.- Specified by:
cache
in interfaceLocalManualCache<UnboundedLocalCache<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()
-
-