Interface ForgetfulMap.ValueCache<V>

All Known Implementing Classes:
ForgetfulMap.ValueCacheImpl, TypeCache
Enclosing class:
ForgetfulMap<K,V>

public static interface ForgetfulMap.ValueCache<V>
The specifications of TypeCache to allow for another implementation.
  • Method Details

    • flushCache

      void flushCache()
    • getCachedObject

      V getCachedObject()
    • isCacheSet

      boolean isCacheSet()
      Is there currently a value cached for this key?
    • isDirty

      boolean isDirty()
      Returns:
      true if makeDirty() has been called since the last time getCachedObject() was called.
    • makeDirty

      void makeDirty()
      Will force re-creation of the value the next time getCachedObject() is called. This method does NOT immediately remove or invalidate the value from the underlying cache.