org.mmbase.cache
Class BasicReleaseStrategy
java.lang.Object
org.mmbase.cache.ReleaseStrategy
org.mmbase.cache.BasicReleaseStrategy
public class BasicReleaseStrategy
- extends ReleaseStrategy
This class provides a very basic release strategy. In fact it will release
the cache in nearly every instance, except when the event is for a step in
the SearchQuery that has 'nodes' set for it and the changed
node is not one of those. This release strategy is in fact the original one
and will allways be the first in the hierarchy of the
ChainedReleaseStrategy.
- Since:
- MMBase-1.8
- Version:
- $Id: BasicReleaseStrategy.java 34900 2009-05-01 16:29:42Z michiel $
- Author:
- Ernst Bunders
| Methods inherited from class org.mmbase.cache.ReleaseStrategy |
clear, equals, evaluate, evaluate, getAvgEvaluationTimeInMilis, getConstraintsForField, getSortordersForField, getTotalEvaluated, getTotalEvaluationTimeMillis, getTotalPreserved, hashCode, isEnabled, setEnabled, toString |
BasicReleaseStrategy
public BasicReleaseStrategy()
getName
public String getName()
- Specified by:
getName in class ReleaseStrategy
getDescription
public String getDescription()
- Specified by:
getDescription in class ReleaseStrategy
doEvaluate
protected final boolean doEvaluate(NodeEvent event,
SearchQuery query,
List<MMObjectNode> cachedResult)
- Description copied from class:
ReleaseStrategy
- implement this method to create your own strategy.
- Specified by:
doEvaluate in class ReleaseStrategy
- Parameters:
event - a node event
- Returns:
- true if the cache entry should be released
doEvaluate
protected boolean doEvaluate(RelationEvent event,
SearchQuery query,
List<MMObjectNode> cachedResult)
- Description copied from class:
ReleaseStrategy
- implement this method to create your own strategy.
- Specified by:
doEvaluate in class ReleaseStrategy
- Parameters:
event - a relation event
- Returns:
- true if the cache entry should be released
MMBase 2.0-SNAPSHOT - null