org.codehaus.wadi.core.eviction
Class TimeToLiveEvicter
java.lang.Object
org.codehaus.wadi.core.eviction.AbstractEvicter
org.codehaus.wadi.core.eviction.AbstractBestEffortEvicter
org.codehaus.wadi.core.eviction.TimeToLiveEvicter
- All Implemented Interfaces:
- Evicter
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: 2267 $
- Author:
- Jules Gosnell
Field Summary |
protected long |
_ttl
|
Constructor Summary |
TimeToLiveEvicter(int sweepInterval,
boolean strictOrdering,
int 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)
testForDemotion
public boolean testForDemotion(Motable motable,
long time,
long ttl)
Copyright © 2010. All Rights Reserved.