| java.lang.Object org.continuent.sequoia.controller.cache.result.CacheBehavior org.continuent.sequoia.controller.cache.result.rules.RelaxedCaching
RelaxedCaching | public class RelaxedCaching extends CacheBehavior (Code) | | RelaxedCaching means we set a timeout value for this entry, and when expired
we keep in the cache if no write has modified the corresponding result, we
wait for the same amount of time again. RelaxedCaching may provide stale
data. The timeout defines the maximum staleness of a cache entry. It means
that the cache may return an entry that is out of date. timeout: is a value
in seconds and 0 means no timeout (always in the cache) keepIfNotDirty: if
true the entry is kept in the cache and the timeout is reset, if false, the
entry is removed from the cache after the timeout has expired even if the
entry was not affected by a write.
author: Nicolas Modrzyk author: Emmanuel Cecchet version: 1.0 |
Constructor Summary | |
public | RelaxedCaching(boolean keepIfNotDirty, long timeout) |
RelaxedCaching | public RelaxedCaching(boolean keepIfNotDirty, long timeout)(Code) | | Create new RelaxedCaching action
Parameters: timeout - before we check the validity of an entry Parameters: keepIfNotDirty - true if non-dirty entries must be kept in the cache |
|
|