org.codehaus.wadi.core.eviction
Interface Evicter

All Known Implementing Classes:
AbsoluteEvicter, AbstractBestEffortEvicter, AbstractEvicter, AlwaysEvicter, DummyEvicter, TimeToLiveEvicter

public interface Evicter

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

Version:
$Revision: 2267 $
Author:
Jules Gosnell

Method Summary
 void cancel(java.util.TimerTask timerTask)
           
 void evict(ConcurrentMotableMap idToEvictable, EvictionStrategy evictionStrategy)
           
 void schedule(java.util.Timer timer, java.util.TimerTask timerTask)
           
 boolean testForDemotion(Motable motable, long time, long ttl)
           
 

Method Detail

schedule

void schedule(java.util.Timer timer,
              java.util.TimerTask timerTask)

cancel

void cancel(java.util.TimerTask timerTask)

evict

void evict(ConcurrentMotableMap idToEvictable,
           EvictionStrategy evictionStrategy)

testForDemotion

boolean testForDemotion(Motable motable,
                        long time,
                        long ttl)


Copyright © 2011. All Rights Reserved.