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
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-2008 Core Developers Network Ltd.. All Rights Reserved.