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

Type Parameters:
T - value type
All Superinterfaces:
SerializationStrategy<T>
All Known Subinterfaces:
SerializationStrategy3<T>
All Known Implementing Classes:
DsoSerializationStrategy2, DsoSerializationStrategy3

public interface SerializationStrategy2<T>
extends SerializationStrategy<T>

Serialization strategy V2


Method Summary
 Object deserializeStringKey(String key)
          Deserialize a given key object into the "real" key object.
 Object deserializeStringKey(String key, ClassLoader loader)
          Deserialize a given key object into the "real" key object.
 
Methods inherited from interface org.terracotta.cache.serialization.SerializationStrategy
deserialize, deserialize, generateStringKeyFor, serialize
 

Method Detail

deserializeStringKey

Object deserializeStringKey(String key)
                            throws IOException,
                                   ClassNotFoundException
Deserialize a given key object into the "real" key object. This method assumes it is passed Strings created from generateStringKeyFor() on this class

Parameters:
key - key to deserialize
Returns:
the deserialized key object
Throws:
IOException
ClassNotFoundException

deserializeStringKey

Object deserializeStringKey(String key,
                            ClassLoader loader)
                            throws IOException,
                                   ClassNotFoundException
Deserialize a given key object into the "real" key object. This method assumes it is passed Strings created from generateStringKeyFor() on this class

Parameters:
key - key to deserialize
loader - classloader to use
Returns:
the deserialized key object
Throws:
IOException
ClassNotFoundException


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