| org.apache.jetspeed.cache.JetspeedCache
All known Subclasses: org.apache.jetspeed.cache.impl.EhCacheDistributedImpl, org.apache.jetspeed.cache.impl.EhCacheImpl,
JetspeedCache | public interface JetspeedCache (Code) | |
Provides interface to Jetspeed for cache related activities
Abstraction around actual cache implementation
author: David Sean Taylor version: $Id: $ |
addEventListener | void addEventListener(JetspeedCacheEventListener listener, boolean local)(Code) | | Add a cache listener for supported cache events, either for local or remote cache events
Parameters: listener - Parameters: local - if true, listen to local events, if false, listen to remote |
clear | void clear()(Code) | | clear all content in the cache
|
createCacheKey | ContentCacheKey createCacheKey(RequestContext rc, String windowId)(Code) | | Create a portlet content cache key based on dynamic request context information and a window id
Parameters: rc - Parameters: windowId - since: 2.1.2 |
evictContentForSession | void evictContentForSession(String sessionId)(Code) | | Evict all cached content for the given session identifier
Parameters: sessionid - unique session identifier |
evictContentForUser | void evictContentForUser(String username)(Code) | | Evict all cached content for the given username
Parameters: username - unique user identifier |
get | CacheElement get(Object key)(Code) | | Retrieve an object from the cache
Parameters: key - The key used to find the object the found object or null |
getTimeToIdleSeconds | int getTimeToIdleSeconds()(Code) | | the default idle time in seconds for this cache |
getTimeToLiveSeconds | int getTimeToLiveSeconds()(Code) | | the default idle time in seconds for this cache |
put | void put(CacheElement object)(Code) | | Put an object into the cache, adding it, or replacing if exists
Parameters: object - |
remove | boolean remove(Object key)(Code) | | Remove an object from the cache
Parameters: key - true if the object was removed, false otherwise |
removeQuiet | boolean removeQuiet(Object key)(Code) | | Remove object from cache, do not notify listeners
Parameters: key - trie if the object was removed, false otherwise |
|
|