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

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


org.jboss.cache.eviction
Interface EvictionPolicy

All Known Implementing Classes:
BaseEvictionPolicy

public interface EvictionPolicy

Generic eviction policy interface.

Author:
Ben Wang 2-2004

Method Summary
 void configure(TreeCache cache)
          Method called to configure this implementation.
 void evict(Fqn fqn)
          Evict a node form the underlying cache.
 Object getCacheData(Fqn fqn, Object key)
           
 Set getChildrenNames(Fqn fqn)
          Return children names as Objects
 Region[] getRegions()
          Return all regions declared.
 int getWakeupIntervalSeconds()
          return eviction thread (if any) wake up interval in seconds.
 boolean hasChild(Fqn fqn)
          Is this a leaf node?
 

Method Detail

getRegions

public Region[] getRegions()
Return all regions declared.

Returns:

evict

public void evict(Fqn fqn)
           throws Exception
Evict a node form the underlying cache.

Parameters:
fqn - Node corresponds to this fqn.
Throws:
Exception

getChildrenNames

public Set getChildrenNames(Fqn fqn)
Return children names as Objects

Parameters:
fqn -
Returns:

hasChild

public boolean hasChild(Fqn fqn)
Is this a leaf node?

Parameters:
fqn -
Returns:

getCacheData

public Object getCacheData(Fqn fqn,
                           Object key)

getWakeupIntervalSeconds

public int getWakeupIntervalSeconds()
return eviction thread (if any) wake up interval in seconds.

Returns:

configure

public void configure(TreeCache cache)
Method called to configure this implementation.



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