org.apache.cocoon.pipeline.caching
Class ExpiresCacheKey

java.lang.Object
  extended by org.apache.cocoon.pipeline.caching.AbstractCacheKey
      extended by org.apache.cocoon.pipeline.caching.ExpiresCacheKey
All Implemented Interfaces:
Serializable, CacheKey

public final class ExpiresCacheKey
extends AbstractCacheKey

A cache key implementation that expires after a defined number of seconds.

See Also:
Serialized Form

Constructor Summary
ExpiresCacheKey(CacheKey cacheKey, String expires)
           
 
Method Summary
 boolean equals(Object obj)
          
 long getExpirationTimestamp()
           
 long getLastModified()
          
 int hashCode()
          
 boolean isValid(CacheKey cacheKey)
          
 
Methods inherited from class org.apache.cocoon.pipeline.caching.AbstractCacheKey
getJmxGroupName, hasJmxGroupName, setJmxGroupName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpiresCacheKey

public ExpiresCacheKey(CacheKey cacheKey,
                       String expires)
Method Detail

isValid

public boolean isValid(CacheKey cacheKey)

See Also:
CacheKey.isValid(org.apache.cocoon.pipeline.caching.CacheKey)

getLastModified

public long getLastModified()

See Also:
CacheKey.getLastModified()

getExpirationTimestamp

public long getExpirationTimestamp()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()


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