org.terracotta.cache.serialization
Interface SerializationStrategy<T>
- All Known Implementing Classes:
- DsoSerializationStrategy, ElementSerializationStrategy, HibernateElementSerializationStrategy, NonDsoSerializationStrategy
public interface SerializationStrategy<T>
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.