|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.cocoon.transformation.helpers.PreemptiveLoader
public final class 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(ServiceManager manager,
SourceResolver resolver,
Logger logger)
Start the preemptive loading |
void |
stop()
Stop the loading. |
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(ServiceManager manager, SourceResolver resolver, Logger logger)
manager
- A component managerresolver
- A source resolverlogger
- A loggerpublic void stop()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |