Class CacheElementInfo

java.lang.Object
org.apache.commons.jcs3.admin.CacheElementInfo

public class CacheElementInfo extends Object
Stores info on a cache element for the template
  • Constructor Details

    • CacheElementInfo

      @ConstructorProperties({"key","eternal","createTime","maxLifeSeconds","expiresInSeconds"}) public CacheElementInfo(String key, boolean eternal, String createTime, long maxLifeSeconds, long expiresInSeconds)
      Parameterized constructor
      Parameters:
      key - element key
      eternal - is it eternal
      createTime - when it was created
      maxLifeSeconds - max life
      expiresInSeconds - when it will expire
  • Method Details

    • getKey

      public String getKey()
      Returns:
      a string representation of the key
    • isEternal

      public boolean isEternal()
      Returns:
      true if the item does not expire
    • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string info on the item