org.jpublish.page
Class PageCacheEntry
java.lang.Object
|
+--org.jpublish.page.PageCacheEntry
- public class PageCacheEntry
- extends java.lang.Object
A cache entry for a Page. Each page should have one corresponding
cache entry. The cache entry must be reloaded if the last modification
date of the page in the file system does not match the last modification
date in the cache entry.
- Author:
- Anthony Eden
Constructor Summary |
PageCacheEntry(Page page,
long lastModified)
Construct a new PageCacheEntry for the given page. |
Method Summary |
long |
getLastModified()
Get the last modification time. |
Page |
getPage()
Get the page for this cache entry. |
void |
setLastModified(long lastModified)
Set the last modification time (in milliseconds). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PageCacheEntry
public PageCacheEntry(Page page,
long lastModified)
- Construct a new PageCacheEntry for the given page.
- Parameters:
page
- The pagelastModified
- The last modification time in milliseconds
getLastModified
public long getLastModified()
- Get the last modification time. This value should be compared
against the file system's last modification time.
- Returns:
- The last modification time
setLastModified
public void setLastModified(long lastModified)
- Set the last modification time (in milliseconds).
- Parameters:
lastModified
- The new last modification time
getPage
public Page getPage()
- Get the page for this cache entry.
- Returns:
- The Page
Copyright (C) 2001 Anthony Eden. All Rights Reserved.