|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.appserv.web.taglibs.cache.CacheEntry
public class CacheEntry
CacheEntry holds cached JSP fragments a) response content b) expiryTime XXX: should implement methods to enable serialization of cached response?
| Field Summary | |
|---|---|
static int |
NO_TIMEOUT
|
| Constructor Summary | |
|---|---|
CacheEntry(String response,
int timeout)
Constructs a CacheEntry using the response string to be cached and the timeout after which the entry will expire |
|
| Method Summary | |
|---|---|
void |
clear()
clear the contents |
void |
computeExpireTime(int timeout)
compute when this entry to be expired based on timeout relative to current time. |
String |
getContent()
set the content stored in the entry |
boolean |
isValid()
is this response still valid? |
void |
setExpireTime(long expireTime)
set the real expire time |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_TIMEOUT
| Constructor Detail |
|---|
public CacheEntry(String response,
int timeout)
| Method Detail |
|---|
public void setExpireTime(long expireTime)
expireTime - in milli secondspublic String getContent()
public void computeExpireTime(int timeout)
timeout - in secondspublic boolean isValid()
public void clear()
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.