| java.lang.Object org.mmbase.cache.ReleaseStrategy org.mmbase.cache.ChainedReleaseStrategy
ChainedReleaseStrategy | public class ChainedReleaseStrategy extends ReleaseStrategy (Code) | | This class will manage a collection of ReleaseStrategy
instances, and call them hierarchically.
since: MMBase-1.8 author: Ernst Bunders version: $Id: ChainedReleaseStrategy.java,v 1.22 2007/02/25 18:18:24 nklasens Exp $ |
ChainedReleaseStrategy | public ChainedReleaseStrategy()(Code) | | |
addReleaseStrategy | public void addReleaseStrategy(ReleaseStrategy strategy)(Code) | | Adds the strategy if it is not already there. Strategies should only
occur once.
Parameters: strategy - |
clear | public void clear()(Code) | | |
removeAllStrategies | public void removeAllStrategies()(Code) | | removes all strategies
|
setEnabled | public void setEnabled(boolean newStatus)(Code) | | This method provides a way of globally switching off all strategies this one wraps.
When this strategy is set to 'disabled', the state of all wrapped strategies is being
preserved, so when it is being 'enabled' again, these settings are restored, in stead of
just setting all wrapped strategies to 'enabled'.
|
size | public int size()(Code) | | since: MMBase-1.8.1 |
Methods inherited from org.mmbase.cache.ReleaseStrategy | public void clear()(Code)(Java Doc) abstract protected boolean doEvaluate(NodeEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) abstract protected boolean doEvaluate(RelationEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) public boolean equals(Object ob)(Code)(Java Doc) final public StrategyResult evaluate(NodeEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) final public StrategyResult evaluate(RelationEvent event, SearchQuery query, List<MMObjectNode> cachedResult)(Code)(Java Doc) public int getAvgEvaluationTimeInMilis()(Code)(Java Doc) protected static List<Constraint> getConstraintsForField(String fieldName, MMObjectBuilder builder, Constraint constraint, SearchQuery query)(Code)(Java Doc) abstract public String getDescription()(Code)(Java Doc) abstract public String getName()(Code)(Java Doc) protected static List<SortOrder> getSortordersForField(String fieldName, MMObjectBuilder builder, List<SortOrder> sortOrders, SearchQuery query)(Code)(Java Doc) public int getTotalEvaluated()(Code)(Java Doc) public long getTotalEvaluationTimeMillis()(Code)(Java Doc) public int getTotalPreserved()(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public boolean isEnabled()(Code)(Java Doc) public void setEnabled(boolean newStatus)(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
|
|