railo.commons.io.cache
Interface CacheEntry


public interface CacheEntry

interface for a entry inside the cache, this interface is read-only


Method Summary
 long created()
          when was the entry created.
 java.lang.String getKey()
           
 java.lang.Object getValue()
           
 int hitCount()
          how many time was the entry accessed?
 long idletime()
          time in milliseconds after which the object is flushed from the cache if it is not accessed during that time.
 long lastHit()
          when was the entry accessed last time.
 long lastModified()
          when was the entry last time modified.
 long size()
          the size of the object
 long validUntil()
          define time until the entry is valid
 

Method Detail

lastHit

public long lastHit()
when was the entry accessed last time. this information is optional and depends on the implementation, when information is not available -1 is returned

Returns:
time in milliseconds since 1/1/1970 GMT

lastModified

public long lastModified()
when was the entry last time modified. this information is optional and depends on the implementation, when information is not available -1 is returned

Returns:
time offset in milliseconds since 1/1/1970 GMT

created

public long created()
when was the entry created. this information is optional and depends on the implementation, when information is not available -1 is returned

Returns:
time offset in milliseconds since 1/1/1970 GMT

hitCount

public int hitCount()
how many time was the entry accessed? this information is optional and depends on the implementation, when information is not available -1 is returned

Returns:
access count

getKey

public java.lang.String getKey()
Returns:
the key associated with this entry

getValue

public java.lang.Object getValue()
Returns:
the value associated with this entry

size

public long size()
the size of the object

Returns:
size of the object

validUntil

public long validUntil()
define time until the entry is valid

Returns:
time offset in milliseconds since 1/1/1970 GMT or Long.MIN_VALUE if value is not defined

idletime

public long idletime()
time in milliseconds after which the object is flushed from the cache if it is not accessed during that time.

Returns:
time milliseconds since 1/1/1970 GMT or Long.MIN_VALUE if value is not defined