org.terracotta.cache.serialization
Interface SerializationStrategy<T>

All Known Implementing Classes:
DsoSerializationStrategy, ElementSerializationStrategy, HibernateElementSerializationStrategy, NonDsoSerializationStrategy

public interface SerializationStrategy<T>


Method Summary
 T deserialize(byte[] data)
           
 T deserialize(byte[] data, ClassLoader loader)
           
 String generateStringKeyFor(Object key)
           
 byte[] serialize(T value)
           
 

Method Detail

deserialize

T deserialize(byte[] data)
              throws IOException,
                     ClassNotFoundException
Throws:
IOException
ClassNotFoundException

deserialize

T deserialize(byte[] data,
              ClassLoader loader)
              throws IOException,
                     ClassNotFoundException
Throws:
IOException
ClassNotFoundException

serialize

byte[] serialize(T value)
                 throws IOException
Throws:
IOException

generateStringKeyFor

String generateStringKeyFor(Object key)
                            throws IOException
Throws:
IOException


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