

Public Member Functions | |
| StickyCachingStrategy () | |
| boolean | isCacheValid () |
| void | validateCache () |
| void | invalidateCache () |
Private Attributes | |
| boolean | isValid |
A caching strategy that keeps the cache valid until it is invalidated.
| cern::gp::nodes::cache::StickyCachingStrategy::StickyCachingStrategy | ( | ) | [inline] |
Constructs a new caching strategy that keep the cache valid until told otherwise
| timeoutMillis | the timeout for the cache |
| void cern::gp::nodes::cache::StickyCachingStrategy::invalidateCache | ( | ) | [inline] |
Invalidates the current cached value. This method is called to signal that the cached value should not be used anymore.
Implements cern::gp::nodes::cache::CachingStrategy.
References isValid.
| boolean cern::gp::nodes::cache::StickyCachingStrategy::isCacheValid | ( | ) | [inline] |
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.
Implements cern::gp::nodes::cache::CachingStrategy.
References isValid.
| void cern::gp::nodes::cache::StickyCachingStrategy::validateCache | ( | ) | [inline] |
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()
Implements cern::gp::nodes::cache::CachingStrategy.
References isValid.
boolean cern::gp::nodes::cache::StickyCachingStrategy::isValid [private] |
Referenced by invalidateCache(), isCacheValid(), and validateCache().
1.6.2