-
- All Known Implementing Classes:
ForgetfulMap.ValueCacheImpl,TypeCache
- Enclosing class:
- ForgetfulMap<K,V>
public static interface ForgetfulMap.ValueCache<V>The specifications ofTypeCacheto allow for another implementation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflushCache()VgetCachedObject()booleanisCacheSet()Is there currently a value cached for this key?booleanisDirty()voidmakeDirty()Will force re-creation of the value the next timegetCachedObject()is called.
-
-
-
Method Detail
-
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 timegetCachedObject()was called.
-
makeDirty
void makeDirty()
Will force re-creation of the value the next timegetCachedObject()is called. This method does NOT immediately remove or invalidate the value from the underlying cache.
-
-