org.codehaus.wadi
Interface Evicter

All Superinterfaces:
Lifecycle
All Known Implementing Classes:
AbstractEvicter

public interface Evicter
extends Lifecycle

An API for deciding whether or not to evict a given Evictable

Version:
$Revision: 1139 $
Author:
Jules Gosnell

Method Summary
 void destroy()
           
 void evict()
           
 void init(EvicterConfig config)
           
 void insert(Evictable evictable)
           
 void remove(Evictable evictable)
           
 void setLastAccessedTime(Evictable evictable, long oldTime, long newTime)
           
 void setMaxInactiveInterval(Evictable evictable, int oldInterval, int newInterval)
           
 boolean test(Evictable evictable, long time, long ttl)
           
 
Methods inherited from interface org.codehaus.wadi.Lifecycle
start, stop
 

Method Detail

init

public void init(EvicterConfig config)

destroy

public void destroy()

evict

public void evict()

test

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

setLastAccessedTime

public void setLastAccessedTime(Evictable evictable,
                                long oldTime,
                                long newTime)

setMaxInactiveInterval

public void setMaxInactiveInterval(Evictable evictable,
                                   int oldInterval,
                                   int newInterval)

insert

public void insert(Evictable evictable)

remove

public void remove(Evictable evictable)


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