org.codehaus.wadi.core.eviction
Class AbstractBestEffortEvicter
java.lang.Object
org.codehaus.wadi.core.eviction.AbstractEvicter
org.codehaus.wadi.core.eviction.AbstractBestEffortEvicter
- All Implemented Interfaces:
- Evicter
- Direct Known Subclasses:
- AbsoluteEvicter, AlwaysEvicter, TimeToLiveEvicter
public abstract class AbstractBestEffortEvicter
- extends AbstractEvicter
- Version:
- $Revision: 2482 $
- Author:
- Jules Gosnell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
strictOrdering
protected final boolean strictOrdering
AbstractBestEffortEvicter
public AbstractBestEffortEvicter(int sweepInterval,
boolean strictOrdering)
evict
public void evict(ConcurrentMotableMap idToEvictable,
EvictionStrategy evictionStrategy)
identifyDemotions
protected void identifyDemotions(ConcurrentMotableMap idToEvictable,
java.util.List<Motable> toDemote)
isReadyToDemote
protected boolean isReadyToDemote(Motable motable,
long time)
sortCandidates
protected void sortCandidates(Motable[] toDemote)
demote
protected void demote(Motable[] toDemote,
EvictionStrategy evictionStrategy)
getComparator
protected java.util.Comparator<Evictable> getComparator(long time)
Copyright © 2011. All Rights Reserved.