|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface CacheEntry<K,V>
A cached object.
| Method Summary | |
|---|---|
long |
getCacheTime()
Get the date this object was cached. |
V |
getDataHook(Cache<K,V> cache)
Get the hooked data. |
long |
getExpires()
Get the expiry-date of our file |
long |
getHookSize()
Get the disc size of the hook, if any |
long |
getId()
Get the id of the entry. |
K |
getKey()
Get the key were holding data for |
long |
getKeySize()
Get the disk size of the key, if any |
long |
getSize()
Get the size of our file |
void |
setCacheTime(long date)
Set the date this object was cached. |
void |
setDataHook(V o)
Sets the data hook for this cache object. |
void |
setExpires(long d)
Sets the expirydate of our data |
void |
setSize(long size)
Sets the size of our data file |
| Method Detail |
|---|
long getId()
K getKey()
long getCacheTime()
void setCacheTime(long date)
date - the date.long getSize()
long getKeySize()
long getHookSize()
void setSize(long size)
size - the new Sizelong getExpires()
void setExpires(long d)
d - the new expiry-date.V getDataHook(Cache<K,V> cache)
cache - the Cache this entry lives in.
void setDataHook(V o)
o - the new data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||