|
|||||||||
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 Object |
document
|
protected File |
file
|
protected long |
lastAccessed
|
protected Date |
lastModified
|
Constructor Summary | |
---|---|
private |
FileCacheEntryImpl()
|
|
FileCacheEntryImpl(File file,
Object document)
Constructs a FileCacheEntry object |
Method Summary | |
---|---|
Object |
getDocument()
Get the Document |
File |
getFile()
Get the file descriptor |
long |
getLastAccessed()
Get the cache's lastAccessed stamp |
Date |
getLastModified()
Get the entry's lastModified stamp (which may be stale compared to file's stamp) |
void |
setDocument(Object document)
Set the Document in the cache |
void |
setFile(File file)
Set the file descriptor |
void |
setLastAccessed(long lastAccessed)
Set the cache's last accessed stamp |
void |
setLastModified(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 File file
protected Object document
protected long lastAccessed
protected Date lastModified
Constructor Detail |
---|
private FileCacheEntryImpl()
public FileCacheEntryImpl(File file, Object document)
document
- The user specific content being cachedlastModified
- The document's last modified stampMethod Detail |
---|
public File getFile()
getFile
in interface org.apache.jetspeed.cache.file.FileCacheEntry
public void setFile(File file)
setFile
in interface org.apache.jetspeed.cache.file.FileCacheEntry
file
- the new file descriptorpublic void setLastAccessed(long lastAccessed)
setLastAccessed
in interface org.apache.jetspeed.cache.file.FileCacheEntry
lastAccessed
- the cache's last access stamppublic long getLastAccessed()
getLastAccessed
in interface org.apache.jetspeed.cache.file.FileCacheEntry
public void setLastModified(Date lastModified)
setLastModified
in interface org.apache.jetspeed.cache.file.FileCacheEntry
lastModified
- the cache's last modified stamppublic Date getLastModified()
getLastModified
in interface org.apache.jetspeed.cache.file.FileCacheEntry
public void setDocument(Object document)
setDocument
in interface org.apache.jetspeed.cache.file.FileCacheEntry
document
- the document being cachedpublic Object getDocument()
getDocument
in interface org.apache.jetspeed.cache.file.FileCacheEntry
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |