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

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

public interface SerializationStrategy3<T>
extends SerializationStrategy2<T>

Serialization strategy V3


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

Method Detail

localDeserializeStringKey

Object localDeserializeStringKey(String key)
                                 throws IOException,
                                        ClassNotFoundException
Try to 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 or null if operation cannot be performed with local data
Throws:
IOException
ClassNotFoundException

localDeserializeStringKey

Object localDeserializeStringKey(String key,
                                 ClassLoader loader)
                                 throws IOException,
                                        ClassNotFoundException
Try to 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 or null if operation cannot be performed with local data
Throws:
IOException
ClassNotFoundException


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