org.terracotta.cache.serialization
Class DsoSerializationStrategy3<T>

java.lang.Object
  extended by org.terracotta.cache.serialization.DsoSerializationStrategy<T>
      extended by org.terracotta.cache.serialization.DsoSerializationStrategy2<T>
          extended by org.terracotta.cache.serialization.DsoSerializationStrategy3<T>
Type Parameters:
T - value type
All Implemented Interfaces:
SerializationStrategy<T>, SerializationStrategy2<T>, SerializationStrategy3<T>, UnsafeSerializationStrategy<T>

public class DsoSerializationStrategy3<T>
extends DsoSerializationStrategy2<T>
implements SerializationStrategy3<T>

V3 DsoSerializationStrategy


Nested Class Summary
 
Nested classes/interfaces inherited from class org.terracotta.cache.serialization.DsoSerializationStrategy
DsoSerializationStrategy.OIS, DsoSerializationStrategy.OOS
 
Field Summary
 
Fields inherited from class org.terracotta.cache.serialization.DsoSerializationStrategy
HIGH_BIT, oscSerializer
 
Constructor Summary
DsoSerializationStrategy3()
           
 
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 class org.terracotta.cache.serialization.DsoSerializationStrategy2
deserializeStringKey, deserializeStringKey, generateStringKeyFor, readStringKey
 
Methods inherited from class org.terracotta.cache.serialization.DsoSerializationStrategy
decodeInt, deserialize, deserialize, encodeInt, serialize, unsafelyDeserialize, unsafelyDeserialize, writeStringKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.terracotta.cache.serialization.SerializationStrategy2
deserializeStringKey, deserializeStringKey
 
Methods inherited from interface org.terracotta.cache.serialization.SerializationStrategy
deserialize, deserialize, generateStringKeyFor, serialize
 

Constructor Detail

DsoSerializationStrategy3

public DsoSerializationStrategy3()
Method Detail

localDeserializeStringKey

public Object localDeserializeStringKey(String key)
                                 throws IOException,
                                        ClassNotFoundException
Description copied from interface: SerializationStrategy3
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

Specified by:
localDeserializeStringKey in interface SerializationStrategy3<T>
Parameters:
key - key to deserialize
Returns:
the deserialized key object or null if operation cannot be performed with local data
Throws:
IOException
ClassNotFoundException

localDeserializeStringKey

public Object localDeserializeStringKey(String key,
                                        ClassLoader loader)
                                 throws IOException,
                                        ClassNotFoundException
Description copied from interface: SerializationStrategy3
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

Specified by:
localDeserializeStringKey in interface SerializationStrategy3<T>
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.