|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Object that are self-maintaining in a cache.
| Method Summary | |
int |
getAccessCount()
Get the number of times this object has been accessed. |
Object |
getCachedObject()
Get the value that has been cached. |
Object |
getCacheKey()
Get the key with which this object is cached. |
long |
getCacheTime()
Get the timestamp at which this object was cached. |
long |
getLastAccessTime()
Get the timestamp of the last access. |
boolean |
isExpired()
Determine whether this cache entry has expired. |
void |
setAccessTime(long t)
Set the timestamp of a particular access. |
| Methods inherited from interface net.spy.cache.CacheListener |
cachedEvent, uncachedEvent |
| Method Detail |
public Object getCacheKey()
public Object getCachedObject()
public boolean isExpired()
public long getCacheTime()
public long getLastAccessTime()
public void setAccessTime(long t)
t - a timestamp indicating accesspublic int getAccessCount()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||