Public Member Functions | |
boolean | isCacheValid () |
void | validateCache () |
void | invalidateCache () |
An object implementing this interface defines a strategy of caching. This object does not keep track of the cached objects but rather provide the strategy associated to the caching of those objects.
void cern.gp.nodes.cache.CachingStrategy.invalidateCache | ( | ) |
Invalidates the current cached value. This method is called to signal that the cached value should not be used anymore.
Implemented in cern.gp.nodes.cache.NoCachingStrategy, cern.gp.nodes.cache.StickyCachingStrategy, and cern.gp.nodes.cache.TimeLimitedCachingStrategy.
Referenced by cern.gp.nodes.impl.CacheablePropertySupport.resetCache(), and cern.gp.nodes.impl.CacheableIndexedPropertySupport.resetCache().
boolean cern.gp.nodes.cache.CachingStrategy.isCacheValid | ( | ) |
Checks whether the cache is still valid. If true is returned the cached value will be used. If false is returned the cached value will be discarded and the getter will be invoked to get a new value.
Implemented in cern.gp.nodes.cache.NoCachingStrategy, cern.gp.nodes.cache.StickyCachingStrategy, and cern.gp.nodes.cache.TimeLimitedCachingStrategy.
Referenced by cern.gp.nodes.impl.CacheableIndexedPropertySupport.getIndexedValue(), cern.gp.nodes.impl.CacheablePropertySupport.getValue(), and cern.gp.nodes.impl.CacheableIndexedPropertySupport.getValue().
void cern.gp.nodes.cache.CachingStrategy.validateCache | ( | ) |
Validates the current cached value. This method is called to signal that the cached value has just been updated. The strategy should take this event into account for the implementation of isCached()
Implemented in cern.gp.nodes.cache.NoCachingStrategy, cern.gp.nodes.cache.StickyCachingStrategy, and cern.gp.nodes.cache.TimeLimitedCachingStrategy.
Referenced by cern.gp.nodes.impl.CacheableIndexedPropertySupport.getIndexedValue(), cern.gp.nodes.impl.CacheablePropertySupport.getValue(), cern.gp.nodes.impl.CacheableIndexedPropertySupport.getValue(), cern.gp.nodes.impl.CacheablePropertySupport.setValue(), and cern.gp.nodes.impl.CacheableIndexedPropertySupport.setValue().