net.sf.ehcache
Class NonEternalElementData
java.lang.Object
net.sf.ehcache.ElementData
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NonEternalElementData
public NonEternalElementData()
NonEternalElementData
public NonEternalElementData(Element element)
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.