|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.transformation.helpers.PreemptiveLoader
The preemptive loader is a singleton that runs in the background and loads content into the cache.
| Constructor Summary | |
PreemptiveLoader()
|
|
| Method Summary | |
void |
add(IncludeCacheStorageProxy proxy,
String uri,
long expires)
Add a new task |
void |
process(SourceResolver resolver)
Start the preemptive loading |
void |
process(SourceResolver resolver,
Log logger)
Start the preemptive loading |
void |
stop()
Stop the loading. |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PreemptiveLoader()
| Method Detail |
public void add(IncludeCacheStorageProxy proxy,
String uri,
long expires)
proxy - The cache to store the contenturi - The absolute URI to loadexpires - The expires information used for the cachepublic void process(SourceResolver resolver)
resolver - A source resolver
public void process(SourceResolver resolver,
Log logger)
resolver - A source resolverlogger - A loggerpublic void stop()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||