Interface ICacheEntry


public interface ICacheEntry
Title: Description: Copyright: Copyright (c) 2000 Company: This is the in-memory representation of a cached object. This is the object actual placed in memory. Note that calling the set methods may change the in-memory cached values, but it will NOT get persisted to the DB, unless a subsequent PUT is called. However it's not recommended to use the set methods directory except from cache implementations.
  • Method Details

    • getKey

      ICacheKey getKey()
      Returns:
      ICacheKey
    • getValue

      Object getValue()
      Returns:
      Object
    • setValue

      void setValue(Object value)
      sets value
    • getModified

      long getModified()
      Returns:
      last modified date
    • setModified

      void setModified(long modifiedDate)
      sets modified date
    • getExpiration

      long getExpiration()
      Returns:
      expiration date, 0 if not expirable
    • setExpiration

      void setExpiration(long expiration)
      sets expiration
      Parameters:
      expiration - 0 means not expirable
    • getIsValid

      boolean getIsValid()
      gets whether thing is valid
    • setIsValid

      void setIsValid(boolean isValid)
      Parameters:
      isValid - true means valid
    • isExpired

      boolean isExpired(long currentTime)
      is the object expired given current time
      Returns:
      true if expired
    • getCacheId

      int getCacheId()
      Returns:
      id of cache in DB.
    • setCacheId

      void setCacheId(int cacheID)
      sets cache id