Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.opencms.file
Class CmsCachedObject  view CmsCachedObject download CmsCachedObject.java

java.lang.Object
  extended bycom.opencms.file.CmsCachedObject
All Implemented Interfaces:
java.lang.Cloneable

public class CmsCachedObject
extends java.lang.Object
implements java.lang.Cloneable

Defines one individual object stored in the DBCacheFile and method to access it

Version:
$Revision: 1.12 $ $Date: 2003/04/01 15:20:18 $

Field Summary
private  java.lang.Object m_contents
           
private  long m_timestamp
           
 
Constructor Summary
CmsCachedObject(java.lang.Object contents)
          Creates a new CmsCachedObject.
CmsCachedObject(java.lang.Object contents, long timestamp)
          Creates a new CmsCachedObject.
 
Method Summary
 java.lang.Object clone()
          Clones the CachedObject.
 java.lang.Object getContents()
          Gets the contents of this CmsCacheObject.
 long getTimestamp()
          Gets the last access time for this CmsCacheObject.
 void setTimestamp()
          Sets the last access time for this CmsCacheObject.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_contents

private java.lang.Object m_contents

m_timestamp

private long m_timestamp
Constructor Detail

CmsCachedObject

public CmsCachedObject(java.lang.Object contents)
Creates a new CmsCachedObject. The current system time is used as the timestamp.


CmsCachedObject

public CmsCachedObject(java.lang.Object contents,
                       long timestamp)
Creates a new CmsCachedObject.

Method Detail

clone

public java.lang.Object clone()
Clones the CachedObject. This is needed to return only clones of the objects stored in the cache


getContents

public java.lang.Object getContents()
Gets the contents of this CmsCacheObject. The last access time of the Cache object is set tu the current system time.


getTimestamp

public long getTimestamp()
Gets the last access time for this CmsCacheObject.


setTimestamp

public void setTimestamp()
Sets the last access time for this CmsCacheObject.