|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.terracotta.cache.serialization.NonDsoSerializationStrategy
public class NonDsoSerializationStrategy
A non-clusterable serialization strategy.
| Constructor Summary | |
|---|---|
NonDsoSerializationStrategy()
|
|
| Method Summary | |
|---|---|
Object |
deserialize(byte[] data)
Deserialize the serialized value returning a new representation. |
Object |
deserialize(byte[] data,
ClassLoader loader)
Deserialize the serialized value using the specified loader, and returning a new representation. |
String |
generateStringKeyFor(Object value)
Convert the given key into a portable String form. |
byte[] |
serialize(Object value)
Serialize the given value into a detached, portable form. |
Object |
unsafelyDeserialize(byte[] data)
|
Object |
unsafelyDeserialize(byte[] value,
ClassLoader classLoader)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NonDsoSerializationStrategy()
| Method Detail |
|---|
public Object deserialize(byte[] data)
throws IOException,
ClassNotFoundException
SerializationStrategy
deserialize in interface SerializationStrategydata - serialized form
IOException - if deserialization fails
ClassNotFoundException - if a required class is not found
public String generateStringKeyFor(Object value)
throws IOException
SerializationStrategyString form.
generateStringKeyFor in interface SerializationStrategyvalue - key to serialize
String key
IOException - if serialization fails
public byte[] serialize(Object value)
throws IOException
SerializationStrategy
serialize in interface SerializationStrategyvalue - value to serialize
IOException - if serialization fails
public Object deserialize(byte[] data,
ClassLoader loader)
throws IOException,
ClassNotFoundException
SerializationStrategy
deserialize in interface SerializationStrategydata - serialized formloader - to use during deserialization
IOException - if deserialization fails
ClassNotFoundException - if a required class is not found
public Object unsafelyDeserialize(byte[] value,
ClassLoader classLoader)
throws IOException,
ClassNotFoundException
unsafelyDeserialize in interface UnsafeSerializationStrategyIOException
ClassNotFoundException
public Object unsafelyDeserialize(byte[] data)
throws IOException,
ClassNotFoundException
unsafelyDeserialize in interface UnsafeSerializationStrategyIOException
ClassNotFoundException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||