org.apache.jcs.admin
Class CacheElementInfo

java.lang.Object
  extended byorg.apache.jcs.admin.CacheElementInfo

public class CacheElementInfo
extends java.lang.Object

Stores info on a cache element for the template


Constructor Summary
CacheElementInfo()
           
 
Method Summary
 java.lang.String getCreateTime()
           
 long getExpiresInSeconds()
          Ignored if isEternal
 java.lang.String getKey()
           
 long getMaxLifeSeconds()
          Ignored if isEternal
 boolean isEternal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CacheElementInfo

public CacheElementInfo()
Method Detail

getKey

public java.lang.String getKey()
Returns:
a string representation of the key

isEternal

public boolean isEternal()
Returns:
true if the item does not expire

getCreateTime

public java.lang.String getCreateTime()
Returns:
the time the object was created

getMaxLifeSeconds

public long getMaxLifeSeconds()
Ignored if isEternal

Returns:
the longest this object can live.

getExpiresInSeconds

public long getExpiresInSeconds()
Ignored if isEternal

Returns:
how many seconds until this object expires.


Copyright © 2002-2005 Apache Software Foundation. All Rights Reserved.