|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectrabbit.cache.NCacheEntry
A cached object.
| Constructor Summary | |
NCacheEntry(java.lang.Object key,
java.lang.String filename,
long id)
Create a new CacheEntry for given key and filename |
|
| Method Summary | |
java.util.Date |
getCacheTime()
Get the date this object was cached. |
java.lang.Object |
getDataHook()
Get the hooked data. |
java.util.Date |
getExpires()
Get the expiry-date of our file |
java.lang.String |
getFileName()
Get the filename were data is stored |
long |
getId()
Get the id of our entry. |
java.lang.Object |
getKey()
Get the key were holding data for |
long |
getSize()
Get the size of our file |
void |
setCacheTime(java.util.Date date)
Set the date this object was cached. |
void |
setDataHook(java.lang.Object o)
Sets the data hook for this cache object. |
void |
setExpires(java.util.Date d)
Sets the expirydate of our data |
protected void |
setFileName(java.lang.String filename)
set the filename were we will save data |
protected void |
setKey(java.lang.Object key)
Set the key were holding data for |
void |
setSize(long size)
Sets the size of our data |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NCacheEntry(java.lang.Object key,
java.lang.String filename,
long id)
key - the key for the object.filename - the filename were we store our data| Method Detail |
public java.lang.String getFileName()
protected void setFileName(java.lang.String filename)
filename - the name of the File were data is saved.protected void setKey(java.lang.Object key)
key - the key we have data forpublic java.lang.Object getKey()
public java.util.Date getCacheTime()
public void setCacheTime(java.util.Date date)
date - the date.public long getSize()
public void setSize(long size)
size - the new Sizepublic java.util.Date getExpires()
public void setExpires(java.util.Date d)
d - the new expiry-date.public long getId()
public java.lang.Object getDataHook()
public void setDataHook(java.lang.Object o)
o - the new data.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||