| 
||||||||||
| 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,
               java.lang.String windowId)
Create a portlet content cache key based on dynamic request context information and a window id  | 
 CacheElement | 
createElement(java.lang.Object key,
              java.lang.Object content)
Create a cached element  | 
 void | 
evictContentForSession(java.lang.String sessionId)
Evict all cached content for the given session identifier  | 
 void | 
evictContentForUser(java.lang.String username)
Evict all cached content for the given username  | 
 CacheElement | 
get(java.lang.Object key)
Retrieve an object from the cache  | 
 java.util.List | 
getKeys()
Returns a list of all elements in the cache, whether or not they are expired.  | 
 int | 
getMaxSize()
get the maximum size of the cache  | 
 int | 
getSize()
get the size of the cache  | 
 int | 
getTimeToIdleSeconds()
 | 
 int | 
getTimeToLiveSeconds()
 | 
 boolean | 
isDistributed()
Returns whether this cache is currently part of a distributed cache cluster.  | 
 boolean | 
isKeyInCache(java.lang.Object key)
 | 
 void | 
put(CacheElement object)
Put an object into the cache, adding it, or replacing if exists  | 
 boolean | 
remove(java.lang.Object key)
Remove an object from the cache  | 
 void | 
removeEventListener(JetspeedCacheEventListener listener,
                    boolean local)
 | 
 boolean | 
removeQuiet(java.lang.Object key)
Remove object from cache, do not notify listeners  | 
| Method Detail | 
|---|
CacheElement get(java.lang.Object key)
key - The key used to find the object
void clear()
void put(CacheElement object)
object - 
CacheElement createElement(java.lang.Object key,
                           java.lang.Object content)
key - content - 
boolean isKeyInCache(java.lang.Object key)
boolean remove(java.lang.Object key)
key - 
boolean removeQuiet(java.lang.Object key)
key - 
int getTimeToIdleSeconds()
int getTimeToLiveSeconds()
void evictContentForUser(java.lang.String username)
username - unique user identifiervoid evictContentForSession(java.lang.String sessionId)
sessionid - unique session identifier
ContentCacheKey createCacheKey(RequestContext rc,
                               java.lang.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)
java.util.List getKeys()
int getSize()
boolean isDistributed()
int getMaxSize()
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||