org.codehaus.wadi.impl
Class AbsoluteEvicter

java.lang.Object
  extended byorg.codehaus.wadi.impl.AbstractEvicter
      extended byorg.codehaus.wadi.impl.AbstractBestEffortEvicter
          extended byorg.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

Field Summary
protected  long _inactiveInterval
           
 
Fields inherited from class org.codehaus.wadi.impl.AbstractBestEffortEvicter
_config, _lockLog, _log, _strictOrdering, _sweepInterval, _task
 
Constructor Summary
AbsoluteEvicter(int sweepInterval, boolean strictOrdering, int inactivityInterval)
           
 
Method Summary
 boolean test(Evictable evictable, long time, long ttl)
           
 
Methods inherited from class org.codehaus.wadi.impl.AbstractBestEffortEvicter
destroy, evict, getComparator, init, insert, remove, setLastAccessedTime, setMaxInactiveInterval, start, stop
 
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

test

public boolean test(Evictable evictable,
                    long time,
                    long ttl)


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.