KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > avalon > excalibur > cache > ReplacementPolicy


1 /*
2  * Copyright (C) The Apache Software Foundation. All rights reserved.
3  *
4  * This software is published under the terms of the Apache Software License
5  * version 1.1, a copy of which has been included with this distribution in
6  * the LICENSE.txt file.
7  */

8 package org.apache.avalon.excalibur.cache;
9
10 /**
11  * Cache replacement policy.
12  *
13  * @author <a HREF="mailto:colus@apache.org">Eung-ju Park</a>
14  */

15 public interface ReplacementPolicy
16 {
17     void add( Object JavaDoc key );
18
19     void hit( Object JavaDoc key );
20
21     void remove( Object JavaDoc key );
22
23     Object JavaDoc selectVictim();
24 }
25
Popular Tags