org.terracotta.modules.ehcache.writebehind.snapshots
Class ElementSnapshot

java.lang.Object
  extended by org.terracotta.modules.ehcache.writebehind.snapshots.ElementSnapshot
Direct Known Subclasses:
IdentityElementSnapshot, SerializationElementSnapshot

public abstract class ElementSnapshot
extends Object

Abstract base class to for creating and restoring snapshots of Ehcache elements

Version:
$Id: ElementSnapshot.java 23027 2010-05-21 14:24:50Z hhuynh $
Author:
Geert Bevin

Constructor Summary
ElementSnapshot(net.sf.ehcache.Element element)
           
 
Method Summary
 net.sf.ehcache.Element createElement(SerializationStrategy strategy)
           
abstract  Object getKey(SerializationStrategy strategy)
           
abstract  Object getValue(SerializationStrategy strategy)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementSnapshot

public ElementSnapshot(net.sf.ehcache.Element element)
Method Detail

createElement

public final net.sf.ehcache.Element createElement(SerializationStrategy strategy)
                                           throws ClassNotFoundException,
                                                  IOException
Throws:
ClassNotFoundException
IOException

getKey

public abstract Object getKey(SerializationStrategy strategy)
                       throws IOException,
                              ClassNotFoundException
Throws:
IOException
ClassNotFoundException

getValue

public abstract Object getValue(SerializationStrategy strategy)
                         throws IOException,
                                ClassNotFoundException
Throws:
IOException
ClassNotFoundException


Copyright © 2010 Terracotta, Inc.. All Rights Reserved.