org.joseki.util.cache
Interface CachePolicy

All Known Implementing Classes:
CachePolicyLRU

public interface CachePolicy


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
 

Method Detail

expel

public java.lang.Object[] expel(int count)
Choose which object(s) to remove.

Parameters:
count - The number of objects to decide to go.
Returns:
Array of keys to remove

update

public void update(java.lang.Object key)
Note access to an object


newItem

public void newItem(java.lang.Object key,
                    java.lang.Object value)
Announce the insertion of a new object into the cache



Copyright © 2002 Hewlett-Packard. All Rights Reserved.