org.apache.portals.applications.transform
Class TransformCacheEntry

java.lang.Object
  extended byorg.apache.portals.applications.transform.TransformCacheEntry

public class TransformCacheEntry
extends Object

TransformCacheEntry

Version:
$Id: TransformCacheEntry.java 187949 2004-11-15 06:06:42Z taylor $
Author:
David Sean Taylor

Field Summary
protected  Object document
           
protected  String key
           
protected  long lastAccessed
           
protected  long timeToLive
           
 
Constructor Summary
private TransformCacheEntry()
           
  TransformCacheEntry(String key, Object document, long timeToLive)
          Constructs a TransformCacheEntry object
 
Method Summary
 Object getDocument()
          Get the Document
 String getKey()
           
 long getLastAccessed()
          Get the cache's lastAccessed stamp
 long getTimeToLive()
           
 void setDocument(Object document)
          Set the Document in the cache
 void setKey(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

key

protected String key

document

protected Object document

lastAccessed

protected long lastAccessed

timeToLive

protected long timeToLive
Constructor Detail

TransformCacheEntry

private TransformCacheEntry()

TransformCacheEntry

public TransformCacheEntry(String key,
                           Object document,
                           long timeToLive)
Constructs a TransformCacheEntry object

Parameters:
key -
timeToLive - seconds to keep this in the cache
document - The user specific content being cached
Method Detail

setLastAccessed

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

Parameters:
lastAccessed - the cache's last access stamp

getLastAccessed

public long getLastAccessed()
Get the cache's lastAccessed stamp

Returns:
the cache's last accessed stamp

setDocument

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

Parameters:
document - the document being cached

getDocument

public Object getDocument()
Get the Document

Returns:
the document being cached

getKey

public String getKey()
Returns:
Returns the key.

setKey

public void setKey(String key)
Parameters:
key - The key to set.

getTimeToLive

public long getTimeToLive()
Returns:
Returns the timeToLive.

setTimeToLive

public void setTimeToLive(long timeToLive)
Parameters:
timeToLive - The timeToLive in seconds


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