|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jetspeed.cache.FileCacheEntry
FileCache entry keeps the cached content along with last access information.
Field Summary | |
protected java.lang.Object |
document
|
protected java.io.File |
file
|
protected long |
lastAccessed
|
protected java.util.Date |
lastModified
|
Constructor Summary | |
FileCacheEntry(java.io.File file,
java.lang.Object document)
Constructs a FileCacheEntry object |
Method Summary | |
java.lang.Object |
getDocument()
Get the Document |
java.io.File |
getFile()
Get the file descriptor |
long |
getLastAccessed()
Get the cache's lastAccessed stamp |
java.util.Date |
getLastModified()
Get the entry's lastModified stamp (which may be stale compared to file's stamp) |
void |
setDocument(java.lang.Object document)
Set the Document in the cache |
void |
setFile(java.io.File file)
Set the file descriptor |
void |
setLastAccessed(long lastAccessed)
Set the cache's last accessed stamp |
void |
setLastModified(java.util.Date lastModified)
Set the cache's last modified stamp |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected java.io.File file
protected java.lang.Object document
protected long lastAccessed
protected java.util.Date lastModified
Constructor Detail |
public FileCacheEntry(java.io.File file, java.lang.Object document)
document
- The user specific content being cachedMethod Detail |
public java.io.File getFile()
public void setFile(java.io.File file)
file
- the new file descriptorpublic void setLastAccessed(long lastAccessed)
lastAccessed
- the cache's last access stamppublic long getLastAccessed()
public void setLastModified(java.util.Date lastModified)
lastModified
- the cache's last modified stamppublic java.util.Date getLastModified()
public void setDocument(java.lang.Object document)
document
- the document being cachedpublic java.lang.Object getDocument()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |