| java.lang.Object org.apache.cocoon.transformation.helpers.PreemptiveLoader
PreemptiveLoader | final public class PreemptiveLoader (Code) | | The preemptive loader is a singleton that runs in the background
and loads content into the cache.
author: Carsten Ziegeler version: CVS $Id: PreemptiveLoader.java 433543 2006-08-22 06:22:54Z crossley $ since: 2.1 |
Field Summary | |
boolean | alive |
alive | boolean alive(Code) | | Is this thread still alive?
|
add | public void add(IncludeCacheStorageProxy proxy, String uri, long expires)(Code) | | Add a new task
Parameters: proxy - The cache to store the content Parameters: uri - The absolute URI to load Parameters: expires - The expires information used for the cache |
process | public void process(ServiceManager manager, SourceResolver resolver, Logger logger)(Code) | | Start the preemptive loading
Parameters: manager - A component manager Parameters: resolver - A source resolver Parameters: logger - A logger |
stop | public synchronized void stop()(Code) | | Stop the loading.
The loader stops when all tasks from the queue are processed.
|
|
|