org.codehaus.wadi.impl
Class AbsoluteEvicter
java.lang.Object
org.codehaus.wadi.impl.AbstractEvicter
org.codehaus.wadi.impl.AbstractBestEffortEvicter
org.codehaus.wadi.impl.AbsoluteEvicter
- All Implemented Interfaces:
- Evicter, Lifecycle
- 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: 1139 $
- Author:
- Jules Gosnell
Constructor Summary |
AbsoluteEvicter(int sweepInterval,
boolean strictOrdering,
int inactivityInterval)
|
Method Summary |
boolean |
test(Evictable evictable,
long time,
long ttl)
|
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)
test
public boolean test(Evictable evictable,
long time,
long ttl)
Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.