|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.portals.applications.transform.TransformCacheEntry
public class TransformCacheEntry
TransformCacheEntry
Field Summary | |
---|---|
protected java.lang.Object |
document
|
protected java.lang.String |
key
|
protected long |
lastAccessed
|
protected long |
timeToLive
|
Constructor Summary | |
---|---|
TransformCacheEntry(java.lang.String key,
java.lang.Object document,
long timeToLive)
Constructs a TransformCacheEntry object |
Method Summary | |
---|---|
java.lang.Object |
getDocument()
Get the Document |
java.lang.String |
getKey()
|
long |
getLastAccessed()
Get the cache's lastAccessed stamp |
long |
getTimeToLive()
|
void |
setDocument(java.lang.Object document)
Set the Document in the cache |
void |
setKey(java.lang.String key)
|
void |
setLastAccessed(long lastAccessed)
Set the cache's last accessed stamp |
void |
setTimeToLive(long timeToLive)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String key
protected java.lang.Object document
protected long lastAccessed
protected long timeToLive
Constructor Detail |
---|
public TransformCacheEntry(java.lang.String key, java.lang.Object document, long timeToLive)
key
- timeToLive
- seconds to keep this in the cachedocument
- The user specific content being cachedMethod Detail |
---|
public void setLastAccessed(long lastAccessed)
lastAccessed
- the cache's last access stamppublic long getLastAccessed()
public void setDocument(java.lang.Object document)
document
- the document being cachedpublic java.lang.Object getDocument()
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- The key to set.public long getTimeToLive()
public void setTimeToLive(long timeToLive)
timeToLive
- The timeToLive in seconds
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |