org.apache.cocoon.caching
public final class: DeltaTimeCacheValidity [javadoc |
source]
java.lang.Object
org.apache.cocoon.caching.DeltaTimeCacheValidity
All Implemented Interfaces:
CacheValidity
Deprecated! Use - the Avalon Excalibur SourceValidity implementations instead
A validation object that remains valid for a specified amount of time.
- author:
< - a href="mailto:M.Homeijer@devote.nl">Michael Homeijer
- version:
CVS - $Id: DeltaTimeCacheValidity.java 433543 2006-08-22 06:22:54Z crossley $
| Method from org.apache.cocoon.caching.DeltaTimeCacheValidity Detail: |
public long getCachedDateTime() {
return this.cachedDateTime;
} Deprecated! |
public boolean isValid(CacheValidity validity) {
if (validity instanceof DeltaTimeCacheValidity) {
return Math.abs((((DeltaTimeCacheValidity)validity).getCachedDateTime() - this.cachedDateTime)) < this.timeInCache;
}
return false;
} Deprecated! |
public String toString() {
return "Delta Validity[" + this.cachedDateTime + '+" + this.timeInCache + "ms]";
} Deprecated! |