|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jetspeed.cache.file.FileCacheEntryImpl
public class FileCacheEntryImpl
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 | |
|---|---|
FileCacheEntryImpl(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 FileCacheEntryImpl(java.io.File file,
java.lang.Object document)
document - The user specific content being cachedlastModified - The document's last modified stamp| Method Detail |
|---|
public java.io.File getFile()
getFile in interface FileCacheEntrypublic void setFile(java.io.File file)
setFile in interface FileCacheEntryfile - the new file descriptorpublic void setLastAccessed(long lastAccessed)
setLastAccessed in interface FileCacheEntrylastAccessed - the cache's last access stamppublic long getLastAccessed()
getLastAccessed in interface FileCacheEntrypublic void setLastModified(java.util.Date lastModified)
setLastModified in interface FileCacheEntrylastModified - the cache's last modified stamppublic java.util.Date getLastModified()
getLastModified in interface FileCacheEntrypublic void setDocument(java.lang.Object document)
setDocument in interface FileCacheEntrydocument - the document being cachedpublic java.lang.Object getDocument()
getDocument in interface FileCacheEntry
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||