|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Cachable
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 |
|---|
Object getCacheKey()
Object getCachedObject()
boolean isExpired()
long getCacheTime()
long getLastAccessTime()
void setAccessTime(long t)
t - a timestamp indicating accessint getAccessCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||