KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > shiftone > cache > decorator > miss > MissHandler


1 package org.shiftone.cache.decorator.miss;
2
3
4
5 /**
6  * Interface MissHandler.
7  *
8  * @author <a HREF="mailto:jeff@shiftone.org">Jeff Drost</a>
9  * @version $Revision: 1.2 $
10  */

11 public interface MissHandler
12 {
13
14     /**
15      * In the event of a cache miss, a user implemented instance of this class will be
16      * asked to do whatever processing is needed to obtain the cache element
17      *
18      * @param key
19      * @return the object that was fetched
20      */

21     Object JavaDoc fetchObject(Object JavaDoc key) throws Exception JavaDoc;
22 }
23
Popular Tags