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
getEntry()
- Get the entry for the cachable, needed for remove;
this field is meaningful only inside the Cache object.
lastUsed()
- Returns time of last use in milliseconds GMT.
release()
- Release the item, it is not in active use.
retain()
- Returns the number of milliseconds the item is to be
retained after its last use.
setEntry(int)
- Set the entry for the cachable, needed for remove;
this field is meaningful only inside the Cache object.
lastUsed
public abstract long lastUsed()
- Returns time of last use in milliseconds GMT.
- See Also:
- java.lang.System#currentTimeMillis
retain
public abstract long retain()
- Returns the number of milliseconds the item is to be
retained after its last use.
release
public abstract void release()
- Release the item, it is not in active use.
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.
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