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 Details

  • Constructor Details

    • BoundedLocalManualCache

      BoundedLocalManualCache(Caffeine<K,V> builder)
    • BoundedLocalManualCache

      BoundedLocalManualCache(Caffeine<K,V> builder, @Nullable CacheLoader<? super K,V> loader)
  • Method Details

    • cache

      public BoundedLocalCache<K,V> cache()
      Description copied from interface: LocalManualCache
      Returns the backing LocalCache data store.
      Specified by:
      cache in interface LocalManualCache<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.
      Specified by:
      policy in interface Cache<K,V>
      Returns:
      access to inspect and perform advanced operations based on the cache's characteristics
    • readObject

      private void readObject(ObjectInputStream stream) throws InvalidObjectException
      Throws:
      InvalidObjectException
    • writeReplace

      Object writeReplace()