|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--prupp.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 |
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 |
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 dataMethod 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 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()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |