Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2002 Hewlett-Packard. All Rights Reserved.