org.jboss.cache.eviction
Interface EvictionAlgorithm

All Known Implementing Classes:
LRUAlgorithm (src)

public interface EvictionAlgorithm

Interface for all eviction algorithm


Method Summary
 void process(Region (src)  region)
          Entry point for evictin algorithm.
 void resetEvictionQueue(Region (src)  region)
          Reset the whole eviction queue.
 

Method Detail

process

public void process(Region (src)  region)
             throws EvictionException (src) 
Entry point for evictin algorithm. This is an api called by the EvictionTimerTask to process the node events in waiting and actual pruning, if necessary.

Parameters:
region - Region that this algorithm will operate on.
Throws:
EvictionException (src)

resetEvictionQueue

public void resetEvictionQueue(Region (src)  region)
Reset the whole eviction queue. Queue may needs to be reset due to corrupted state, for example.

Parameters:
region - Region that this algorithm will operate on.