org.apache.avalon.excalibur.cache.policy
Class ListBasedPolicy

java.lang.Object
  |
  +--org.apache.avalon.excalibur.cache.policy.ListBasedPolicy
All Implemented Interfaces:
ReplacementPolicy
Direct Known Subclasses:
FIFOPolicy, LRUPolicy

public abstract class ListBasedPolicy
extends java.lang.Object
implements ReplacementPolicy

FIXME: Remove or determine good name.

Author:
Eung-ju Park

Field Summary
protected  java.util.LinkedList m_keyList
           
 
Constructor Summary
ListBasedPolicy()
           
 
Method Summary
 void add(java.lang.Object key)
           
 void remove(java.lang.Object key)
           
 java.lang.Object selectVictim()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.avalon.excalibur.cache.ReplacementPolicy
hit
 

Field Detail

m_keyList

protected java.util.LinkedList m_keyList
Constructor Detail

ListBasedPolicy

public ListBasedPolicy()
Method Detail

add

public void add(java.lang.Object key)
Specified by:
add in interface ReplacementPolicy

remove

public void remove(java.lang.Object key)
Specified by:
remove in interface ReplacementPolicy

selectVictim

public java.lang.Object selectVictim()
Specified by:
selectVictim in interface ReplacementPolicy


Copyright 2001 Apache Jakarta Project. All Rights Reserved.