KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > cache > CacheManager


1 package info.magnolia.cms.cache;
2
3 import info.magnolia.cms.beans.config.ConfigurationException;
4 import info.magnolia.cms.core.Content;
5
6 import javax.servlet.http.HttpServletRequest JavaDoc;
7 import javax.servlet.http.HttpServletResponse JavaDoc;
8
9
10 /**
11  * @author Andreas Brenk
12  * @author Fabrizio Giustina
13  * @since 3.0
14  */

15 public interface CacheManager {
16
17     boolean cacheRequest(CacheKey key, CacheableEntry entry, boolean canCompress);
18
19     CacheKey getCacheKey(HttpServletRequest JavaDoc request);
20
21     boolean isCacheable(HttpServletRequest JavaDoc request);
22
23     boolean canCompress(HttpServletRequest JavaDoc request);
24
25     void flushAll();
26
27     long getCreationTime(CacheKey request);
28
29     void init(Content content) throws ConfigurationException;
30
31     boolean isEnabled();
32
33     boolean isPaused();
34
35     boolean isRunning();
36
37     boolean isStarted();
38
39     void pause();
40
41     void restart();
42
43     void resume();
44
45     void start();
46
47     void stop();
48
49     boolean streamFromCache(CacheKey request, HttpServletResponse JavaDoc response, boolean canCompress);
50 }
51
Popular Tags