org.joseki.util.cache
Class CachePolicyLRU

java.lang.Object
  extended byorg.joseki.util.cache.CachePolicyLRU
All Implemented Interfaces:
CachePolicy

public class CachePolicyLRU
extends java.lang.Object
implements CachePolicy


Constructor Summary
CachePolicyLRU()
           
 
Method Summary
 java.lang.Object[] expel(int count)
          Choose which object(s) to remove.
 void newItem(java.lang.Object key, java.lang.Object value)
          Announce the insertion of a new object into the cache
 void update(java.lang.Object key)
          Note access to an object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachePolicyLRU

public CachePolicyLRU()
Method Detail

expel

public java.lang.Object[] expel(int count)
Description copied from interface: CachePolicy
Choose which object(s) to remove.

Specified by:
expel in interface CachePolicy
Parameters:
count - The number of objects to decide to go.
Returns:
Array of keys to remove

update

public void update(java.lang.Object key)
Description copied from interface: CachePolicy
Note access to an object

Specified by:
update in interface CachePolicy

newItem

public void newItem(java.lang.Object key,
                    java.lang.Object value)
Description copied from interface: CachePolicy
Announce the insertion of a new object into the cache

Specified by:
newItem in interface CachePolicy


Copyright © 2002 Hewlett-Packard. All Rights Reserved.