All Packages  Class Hierarchy  This Package  Previous  Next  Index  

Interface ORG.opengroup.misc.Cachable

public interface Cachable
A cachable item is retained as long as it is used occasionally.

See Also:
tog.ri.moa.Cache

Method Index

 o getEntry()
Get the entry for the cachable, needed for remove; this field is meaningful only inside the Cache object.
 o lastUsed()
Returns time of last use in milliseconds GMT.
 o release()
Release the item, it is not in active use.
 o retain()
Returns the number of milliseconds the item is to be retained after its last use.
 o setEntry(int)
Set the entry for the cachable, needed for remove; this field is meaningful only inside the Cache object.

Methods

 o lastUsed
public abstract long lastUsed()
Returns time of last use in milliseconds GMT.

See Also:
java.lang.System#currentTimeMillis
 o retain
public abstract long retain()
Returns the number of milliseconds the item is to be retained after its last use.

 o release
public abstract void release()
Release the item, it is not in active use.

 o setEntry
public abstract void setEntry(int entry)
Set the entry for the cachable, needed for remove; this field is meaningful only inside the Cache object.

 o getEntry
public abstract int getEntry()
Get the entry for the cachable, needed for remove; this field is meaningful only inside the Cache object.


All Packages  Class Hierarchy  This Package  Previous  Next  Index