01: /*
02:
03: This software is OSI Certified Open Source Software.
04: OSI Certified is a certification mark of the Open Source Initiative.
05:
06: The license (Mozilla version 1.0) can be read at the MMBase site.
07: See http://www.MMBase.org/license
08:
09: */
10:
11: package org.mmbase.cache;
12:
13: /**
14: * A Cacheable object contains information on cache policies, which determines whether the object should be cached or not.
15: * The code that handles the caching should verify this for a cacheable object.
16: *
17: * @author Pierre van Rooden
18: * @version $Id: Cacheable.java,v 1.1 2007/03/31 17:12:58 nklasens Exp $
19: * @since MMBase-1.8
20: * @see org.mmbase.cache.CachePolicy
21: */
22: public interface Cacheable {
23:
24: /**
25: * Returns the CachePolicy of the object.
26: * @return the {@link org.mmbase.cache.CachePolicy} object.
27: */
28: CachePolicy getCachePolicy();
29:
30: /**
31: * Sets the CachePolicy of the query.
32: * @param policy the {@link org.mmbase.cache.CachePolicy} object.
33: */
34: void setCachePolicy(CachePolicy policy);
35:
36: }
|