KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mmbase > bridge > Cacheable


1 /*
2
3 This software is OSI Certified Open Source Software.
4 OSI Certified is a certification mark of the Open Source Initiative.
5
6 The license (Mozilla version 1.0) can be read at the MMBase site.
7 See http://www.MMBase.org/license
8
9 */

10
11 package org.mmbase.bridge;
12 import org.mmbase.cache.CachePolicy;
13
14 /**
15  * A Cacheable object contains information on cache policies, which determines whether the object should be cached or not.
16  * The code that handles the caching should verify this for a cacheable object.
17  *
18  * @author Pierre van Rooden
19  * @version $Id: Cacheable.java,v 1.2 2005/06/03 15:08:10 pierre Exp $
20  * @since MMBase-1.8
21  * @see org.mmbase.cache.CachePolicy
22  */

23 public interface Cacheable {
24
25     /**
26      * Returns the CachePolicy of the object.
27      * @return the {@link org.mmbase.cache.CachePolicy} object.
28      */

29     CachePolicy getCachePolicy();
30
31     /**
32      * Sets the CachePolicy of the query.
33      * @param policy the {@link org.mmbase.cache.CachePolicy} object.
34      */

35     void setCachePolicy(CachePolicy policy);
36
37 }
38
Popular Tags