org.apache.jetspeed.cache.file
Interface FileCacheEntry


public interface FileCacheEntry

Author:
Scott T. Weaver

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
 

Method Detail

getFile

File getFile()
Get the file descriptor

Returns:
the file descriptor

setFile

void setFile(File file)
Set the file descriptor

Parameters:
file - the new file descriptor

setLastAccessed

void setLastAccessed(long lastAccessed)
Set the cache's last accessed stamp

Parameters:
lastAccessed - the cache's last access stamp

getLastAccessed

long getLastAccessed()
Get the cache's lastAccessed stamp

Returns:
the cache's last accessed stamp

setLastModified

void setLastModified(Date lastModified)
Set the cache's last modified stamp

Parameters:
lastModified - the cache's last modified stamp

getLastModified

Date getLastModified()
Get the entry's lastModified stamp (which may be stale compared to file's stamp)

Returns:
the last modified stamp

setDocument

void setDocument(Object document)
Set the Document in the cache

Parameters:
document - the document being cached

getDocument

Object getDocument()
Get the Document

Returns:
the document being cached


Copyright © 1999-2007 Apache Software Foundation. All Rights Reserved.