org.apache.cocoon.components.source
public final class: DelayedRefreshSourceWrapper [javadoc |
source]
java.lang.Object
org.apache.cocoon.components.source.DelayedRefreshSourceWrapper
All Implemented Interfaces:
Source, XMLizable, ModifiableSource
Deprecated! by - the Avalon Exalibur Source Resolving
A wrapper around a
Source that reduces the number of calls to
Source.getLastModified() which can be a costly operation.
- author:
< - a href="mailto:sylvain@apache.org">Sylvain Wallez
- version:
CVS - $Id: DelayedRefreshSourceWrapper.java 433543 2006-08-22 06:22:54Z crossley $
| Constructor: |
public DelayedRefreshSourceWrapper(Source source,
long delay) {
this.source = source;
this.delay = delay;
this.isModifiableSource = source instanceof ModifiableSource;
}
Creates a wrapper for a Source which ensures that
Source.getLastModified() won't be called more than once per
delay milliseconds period. Parameters:
source - the wrapped Source
delay - the last-modified refresh delay, in milliseconds
|