|
||||||||||
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 |
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() throws CacheException
CacheException
long getCacheTime()
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) throws CacheException
cache
- the Cache this entry lives in.
CacheException
void setDataHook(V o)
o
- the new data.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |