org.codehaus.wadi.core.eviction
Class AbsoluteEvicter

java.lang.Object
  extended by org.codehaus.wadi.core.eviction.AbstractEvicter
      extended by org.codehaus.wadi.core.eviction.AbstractBestEffortEvicter
          extended by org.codehaus.wadi.core.eviction.AbsoluteEvicter
All Implemented Interfaces:
Evicter

public class AbsoluteEvicter
extends AbstractBestEffortEvicter

An Evicter which evicts Evictables if they have timed out or after an absolute period of inactivity. For example, using this Evicter, you could evict sessions after 30 minutes of inactivity.

Version:
$Revision: 2267 $
Author:
Jules Gosnell

Field Summary
protected  long _inactiveInterval
           
 
Fields inherited from class org.codehaus.wadi.core.eviction.AbstractBestEffortEvicter
strictOrdering
 
Constructor Summary
AbsoluteEvicter(int sweepInterval, boolean strictOrdering, int inactivityInterval)
           
 
Method Summary
 boolean testForDemotion(Motable motable, long time, long ttl)
           
 
Methods inherited from class org.codehaus.wadi.core.eviction.AbstractBestEffortEvicter
demote, evict, getComparator, identifyDemotions, isReadyToDemote, sortCandidates
 
Methods inherited from class org.codehaus.wadi.core.eviction.AbstractEvicter
cancel, schedule
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_inactiveInterval

protected final long _inactiveInterval
Constructor Detail

AbsoluteEvicter

public AbsoluteEvicter(int sweepInterval,
                       boolean strictOrdering,
                       int inactivityInterval)
Method Detail

testForDemotion

public boolean testForDemotion(Motable motable,
                               long time,
                               long ttl)


Copyright © 2010. All Rights Reserved.