com.plumtree.portaluiinfrastructure.tags.helper
Class TagCacheEntry

java.lang.Object
  extended by com.plumtree.portaluiinfrastructure.tags.helper.TagCacheEntry

public class TagCacheEntry
extends java.lang.Object

Class to store data for a tag cache entry

Author:
rozhang

Field Summary
protected  java.lang.Object m_cacheData
          Cache value
protected  XPDateTime m_expiration
          The time when this entry expires
 
Constructor Summary
TagCacheEntry(java.lang.Object cacheData, XPDateTime expiration)
          Constructor
 
Method Summary
 void ExpireEntry()
          Expire entry by setting the expiration time to 1hr ago.
 java.lang.Object GetCacheData()
          Get the cached value
 boolean IsEntryExpired()
          Check if entry expired
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_cacheData

protected java.lang.Object m_cacheData
Cache value


m_expiration

protected XPDateTime m_expiration
The time when this entry expires

Constructor Detail

TagCacheEntry

public TagCacheEntry(java.lang.Object cacheData,
                     XPDateTime expiration)
Constructor

Parameters:
cacheData -
expiration -
Method Detail

ExpireEntry

public void ExpireEntry()
Expire entry by setting the expiration time to 1hr ago.


IsEntryExpired

public boolean IsEntryExpired()
Check if entry expired

Returns:

GetCacheData

public java.lang.Object GetCacheData()
Get the cached value

Returns:



Copyright © 2002,2003,2004,2005 Plumtree Software, Inc., All Rights Reserved.