Class UnboundedLocalCache.UnboundedLocalManualCache<K,V>
- java.lang.Object
-
- com.github.benmanes.caffeine.cache.UnboundedLocalCache.UnboundedLocalManualCache<K,V>
-
- All Implemented Interfaces:
Cache<K,V>,LocalManualCache<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<K,V>, java.io.Serializable
-
-
Field Summary
Fields Modifier and Type Field Description (package private) UnboundedLocalCache<K,V>cache(package private) @Nullable Policy<K,V>policyprivate static longserialVersionUID
-
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 backingLocalCachedata store.Policy<K,V>policy()Returns access to inspect and perform low-level operations on this cache based on its runtime characteristics.private voidreadObject(java.io.ObjectInputStream stream)(package private) java.lang.ObjectwriteReplace()-
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, bulkLoad, cleanUp, estimatedSize, get, getAll, 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:LocalManualCacheReturns the backingLocalCachedata store.- Specified by:
cachein interfaceLocalManualCache<K,V>
-
policy
public Policy<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
private void readObject(java.io.ObjectInputStream stream) throws java.io.InvalidObjectException- Throws:
java.io.InvalidObjectException
-
writeReplace
java.lang.Object writeReplace()
-
-