|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--solar.module.cache.CachedObject
A container class for the object in the cache.
Field Summary | |
protected long |
_created
When created. |
private long |
_expires
When it expires. |
protected java.lang.Object |
_id
The id for cached object. |
protected java.lang.Object |
_obj
The actual cached object. |
private boolean |
_stale
Is this object stale/expired? |
Fields inherited from interface solar.module.cache.CacheConstants |
CACHE_CAPACITY_DEFAULT, CACHE_CAPACITY_INFINIT, CACHE_TTL_DEFAULT, CACHE_TTL_FOREVER |
Constructor Summary | |
CachedObject(java.lang.Object id,
java.lang.Object obj)
|
Method Summary | |
long |
getCreated()
Returns the creation time for the object. |
long |
getExpires()
Returns the expiration time for the object. |
java.lang.Object |
getObject()
Return the cached object. |
java.lang.Object |
getObjectId()
Return the id of the cached object. |
boolean |
isStale()
Is the object stale? |
void |
setCreated()
Set the creation time. |
void |
setExpires(long expires)
Set the expiration interval for the object. |
void |
setObject(java.lang.Object obj)
Set the cached object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.lang.Object _id
protected java.lang.Object _obj
protected long _created
private long _expires
private boolean _stale
Constructor Detail |
public CachedObject(java.lang.Object id, java.lang.Object obj)
Method Detail |
public java.lang.Object getObjectId()
public java.lang.Object getObject()
public void setObject(java.lang.Object obj)
public long getCreated()
public void setCreated()
public long getExpires()
public void setExpires(long expires)
public boolean isStale()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |