net.sf.ehcache
Class NonEternalElementData

java.lang.Object
  extended by net.sf.ehcache.ElementData
      extended by net.sf.ehcache.NonEternalElementData
All Implemented Interfaces:
Externalizable, Serializable, org.terracotta.toolkit.internal.cache.TimestampedValue

public class NonEternalElementData
extends ElementData

Serialized representation of non-eternal Element

See Also:
Serialized Form

Field Summary
 
Fields inherited from class net.sf.ehcache.ElementData
cacheDefaultLifespan, creationTime, hitCount, lastAccessTime, lastUpdateTime, value, version
 
Constructor Summary
NonEternalElementData()
           
NonEternalElementData(Element element)
           
 
Method Summary
 Element createElement(Object key)
          This method should return the Element object constructed from fields of this ElementData.
protected  void readAttributes(ObjectInput in)
          The subclasses must implement this method to read any subclass specific attributes while deserialization
It will be called when this object is being deserialized.
protected  void writeAttributes(ObjectOutput oos)
          The subclasses must implement this method to persist any subclass specific attribute while serialization
It will be called when this object is being serialized.
 
Methods inherited from class net.sf.ehcache.ElementData
getCreateTime, getLastAccessedTime, getValue, readExternal, setLastAccessedTimeInternal, updateTimestamps, writeExternal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonEternalElementData

public NonEternalElementData()

NonEternalElementData

public NonEternalElementData(Element element)
Method Detail

createElement

public Element createElement(Object key)
Description copied from class: ElementData
This method should return the Element object constructed from fields of this ElementData.

Specified by:
createElement in class ElementData
Parameters:
key - the key which the returned Element object should have.
Returns:
the Element object constructed from this ElementData.

writeAttributes

protected void writeAttributes(ObjectOutput oos)
                        throws IOException
Description copied from class: ElementData
The subclasses must implement this method to persist any subclass specific attribute while serialization
It will be called when this object is being serialized.

Specified by:
writeAttributes in class ElementData
Parameters:
oos - the ObjectOutput object on which the attributes must be written
Throws:
IOException

readAttributes

protected void readAttributes(ObjectInput in)
                       throws IOException
Description copied from class: ElementData
The subclasses must implement this method to read any subclass specific attributes while deserialization
It will be called when this object is being deserialized.

Specified by:
readAttributes in class ElementData
Parameters:
in - the ObjectInput object from which the attributes must be read.
Throws:
IOException


Copyright © 2003-2013 Terracotta, Inc.. All Rights Reserved.