org.codehaus.wadi.core.eviction
Class AbsoluteEvicter
java.lang.Object
org.codehaus.wadi.core.eviction.AbstractEvicter
org.codehaus.wadi.core.eviction.AbstractBestEffortEvicter
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
Constructor Summary |
AbsoluteEvicter(int sweepInterval,
boolean strictOrdering,
int inactivityInterval)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_inactiveInterval
protected final long _inactiveInterval
AbsoluteEvicter
public AbsoluteEvicter(int sweepInterval,
boolean strictOrdering,
int inactivityInterval)
testForDemotion
public boolean testForDemotion(Motable motable,
long time,
long ttl)
Copyright © 2011. All Rights Reserved.