org.codehaus.wadi.impl
Class TimeToLiveEvicter
java.lang.Object
org.codehaus.wadi.impl.AbstractEvicter
org.codehaus.wadi.impl.AbstractBestEffortEvicter
org.codehaus.wadi.impl.TimeToLiveEvicter
- All Implemented Interfaces:
- Evicter, Lifecycle
- public class TimeToLiveEvicter
- extends AbstractBestEffortEvicter
An Evicter which also evicts Evictables with less than a certain time to live remaining.
For example, using this Evicter, you could evict sessions with less than 30 minutes of time left.
- Version:
- $Revision: 1139 $
- Author:
- Jules Gosnell
Field Summary |
protected long |
_ttl
|
Constructor Summary |
TimeToLiveEvicter(int sweepInterval,
boolean strictOrdering,
int ttl)
|
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 |
_ttl
protected final long _ttl
TimeToLiveEvicter
public TimeToLiveEvicter(int sweepInterval,
boolean strictOrdering,
int ttl)
test
public boolean test(Evictable evictable,
long time,
long ttl)
Copyright © 2004-2006 Core Developers Network Ltd.. All Rights Reserved.