org.apache.cocoon.components.source.impl.validity
Class DelayedValidity

java.lang.Object
  extended byorg.apache.cocoon.components.source.impl.validity.DelayedValidity
All Implemented Interfaces:
Serializable, SourceValidity

public class DelayedValidity
extends Object
implements SourceValidity

Delays validity check for a specified interval.

This is wrapper validity which can be used to reduce count of filesystem (or network) accesses just to check the source validity.

Since:
2.1.8
Version:
$Id: DelayedValidity.html 1304280 2012-03-23 11:18:01Z ilgrosso $
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.excalibur.source.SourceValidity
INVALID, UNKNOWN, VALID
 
Constructor Summary
DelayedValidity(long delay, SourceValidity validity)
           
 
Method Summary
 int isValid()
           
 int isValid(SourceValidity newValidity)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelayedValidity

public DelayedValidity(long delay,
                       SourceValidity validity)
Method Detail

isValid

public int isValid()
Specified by:
isValid in interface SourceValidity

isValid

public int isValid(SourceValidity newValidity)
Specified by:
isValid in interface SourceValidity


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.