com.sapportals.wcm.util.cache

Interface ICacheEntry


public interface ICacheEntry

Represents a cache entry.


Method Summary
 long getExpirationTime()
           
 String getKey()
           
 long getModificationTime()
           
 Object getObject()
           
 long getSize()
           
 long getTimeToLive()
           
 boolean isAutoDelaying()
           
 boolean isExpired()
           
 

Method Detail

getKey

public String getKey()
Returns:
key of the cache entry

getObject

public Object getObject()
Returns:
object of the cache entry

getSize

public long getSize()
Returns:
the size of the cache entry

getTimeToLive

public long getTimeToLive()
Returns:
entries time to live in seconds

getExpirationTime

public long getExpirationTime()
Returns:
absolute expiration time of the cache entry (0: never expires) (Date.getTime() compatible)

getModificationTime

public long getModificationTime()
Returns:
date of last modification (Date.getTime() compatible)

isExpired

public boolean isExpired()
Returns:
true iff the cache entry is expired

isAutoDelaying

public boolean isAutoDelaying()
Returns:
true iff expiration is automatically delayed on access for the 'time to live' value


Copyright 2006 SAP AG Complete Copyright Notice