站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 Cache API Documentation 英文版文档

EvictionAlgorithm (JBossCache API) - JBoss 4.0.1 sp1 Cache API Documentation 英文版文档


org.jboss.cache.eviction
Interface EvictionAlgorithm

All Known Implementing Classes:
LRUAlgorithm

public interface EvictionAlgorithm

Interface for all eviction algorithm

Author:
Ben Wang 2-2004

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

Method Detail

process

public void process(Region region)
             throws EvictionException
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

resetEvictionQueue

public void resetEvictionQueue(Region 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.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.