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 key ); 18 19 void hit( Object key ); 20 21 void remove( Object key ); 22 23 Object selectVictim(); 24 } 25