| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JetspeedCache
Provides interface to Jetspeed for cache related activities Abstraction around actual cache implementation
| Method Summary | |
|---|---|
 void | 
addEventListener(JetspeedCacheEventListener listener,
                 boolean local)
Add a cache listener for supported cache events, either for local or remote cache events  | 
 void | 
clear()
clear all content in the cache  | 
 ContentCacheKey | 
createCacheKey(RequestContext rc,
               String windowId)
Create a portlet content cache key based on dynamic request context information and a window id  | 
 CacheElement | 
createElement(Object key,
              Object content)
Create a cached element  | 
 void | 
evictContentForSession(String sessionId)
Evict all cached content for the given session identifier  | 
 void | 
evictContentForUser(String username)
Evict all cached content for the given username  | 
 CacheElement | 
get(Object key)
Retrieve an object from the cache  | 
 int | 
getTimeToIdleSeconds()
 | 
 int | 
getTimeToLiveSeconds()
 | 
 boolean | 
isKeyInCache(Object key)
 | 
 void | 
put(CacheElement object)
Put an object into the cache, adding it, or replacing if exists  | 
 boolean | 
remove(Object key)
Remove an object from the cache  | 
 void | 
removeEventListener(JetspeedCacheEventListener listener,
                    boolean local)
 | 
 boolean | 
removeQuiet(Object key)
Remove object from cache, do not notify listeners  | 
| Method Detail | 
|---|
CacheElement get(Object key)
key - The key used to find the object
void clear()
void put(CacheElement object)
object - 
CacheElement createElement(Object key,
                           Object content)
key - content - 
boolean isKeyInCache(Object key)
boolean remove(Object key)
key - 
boolean removeQuiet(Object key)
key - 
int getTimeToIdleSeconds()
int getTimeToLiveSeconds()
void evictContentForUser(String username)
username - unique user identifiervoid evictContentForSession(String sessionId)
sessionid - unique session identifier
ContentCacheKey createCacheKey(RequestContext rc,
                               String windowId)
rc - windowId - 
void addEventListener(JetspeedCacheEventListener listener,
                      boolean local)
listener - local - if true, listen to local events, if false, listen to remote
void removeEventListener(JetspeedCacheEventListener listener,
                         boolean local)
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||