| |
|
| java.lang.Object org.apache.cocoon.transformation.helpers.IncludeCacheManagerSession
IncludeCacheManagerSession | final public class IncludeCacheManagerSession (Code) | | This object encapsulates a "caching session". A caching session has the
duration of one single request.
This object is used by the
IncludeCacheManager and holds all required
configuration for performing the caching of this request.
The session can be configured during construction with the following parameters:
- purge (boolean/false) : Turn on/off purging the cache
- preemptive (boolean/false) : Turn on/off preemptive caching
- parallel (boolean/false) : Turn on/off parallel processing
- expires (long/0) : The lifetime of the cached content
author: Carsten Ziegeler version: CVS $Id: IncludeCacheManagerSession.java 433543 2006-08-22 06:22:54Z crossley $ since: 2.1 |
IncludeCacheManagerSession | IncludeCacheManagerSession(Parameters configuration, IncludeCacheStorageProxy proxy)(Code) | | Constructor
Parameters: configuration - The parameters configuring this session Parameters: proxy - The proxy used to cache the data |
add | void add(String uri, Object object)(Code) | | Add another object to the thread list
Parameters: uri - The absolute URI Parameters: object - The thread |
cleanup | void cleanup(SourceResolver resolver)(Code) | | Cleanup
Parameters: resolver - The source resolver to release cached sources |
get | Object get(String uri)(Code) | | Get the thread object.
Parameters: uri - The URI Object The thread. |
getExpires | public long getExpires()(Code) | | Get the expiration information
|
getExpiresValidity | public SourceValidity getExpiresValidity()(Code) | | |
isParallel | public boolean isParallel()(Code) | | Do we process the includes in parallel?
|
isPreemptive | public boolean isPreemptive()(Code) | | Do we use preemptive caching?
|
isPurging | public boolean isPurging()(Code) | | Is the cache purged?
|
resolveURI | public Source resolveURI(String uri, SourceResolver resolver) throws IOException(Code) | | Lookup a source object and cache it
Parameters: uri - Absolute URI Source The source obejct |
setPreemptive | void setPreemptive(boolean value)(Code) | | Turn off/on preemptive caching
|
toString | public String toString()(Code) | | Print a representation of this object
|
|
|
|