org.apache.cocoon.pipeline.caching
Class TimestampCacheKey

java.lang.Object
  extended by org.apache.cocoon.pipeline.caching.TimestampCacheKey
All Implemented Interfaces:
CacheKey

public class TimestampCacheKey
extends Object
implements CacheKey


Constructor Summary
TimestampCacheKey(URL url, long timestamp)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getLastModifed()
           
 long getTimestamp()
           
 int hashCode()
           
 boolean isValid(CacheKey cacheKey)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TimestampCacheKey

public TimestampCacheKey(URL url,
                         long timestamp)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getTimestamp

public long getTimestamp()

getLastModifed

public long getLastModifed()
Specified by:
getLastModifed in interface CacheKey

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isValid

public boolean isValid(CacheKey cacheKey)
Specified by:
isValid in interface CacheKey

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008 The Apache Software Foundation. All Rights Reserved.