KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > snaq > util > Cacheable


1 package snaq.util;
2
3 /**
4  * Interface for objects that can be referenced in a cache manager.
5  * @see snaq.util.CacheManager
6  * @author Giles Winstanley
7  */

8 public interface Cacheable
9 {
10     /**
11      * Uniquely identifies the object in the cache.
12      */

13     public Object JavaDoc getId();
14
15     /**
16      * Whether the item has expired.
17      */

18     public boolean isExpired();
19 }
Popular Tags