public class ThreadLocalFstSerializer extends java.lang.ThreadLocal<org.nustaq.serialization.simpleapi.DefaultCoder> implements BlueSerializer
Constructor and Description |
---|
ThreadLocalFstSerializer(java.lang.Class<?>... registeredSerializableClasses) |
Modifier and Type | Method and Description |
---|---|
<T extends java.io.Serializable> |
clone(T object) |
java.lang.Object |
deserializeObjectFromByteArray(byte[] bytes) |
static java.util.Collection<? extends java.lang.Class<? extends java.io.Serializable>> |
getClassesToAlwaysRegister() |
protected org.nustaq.serialization.simpleapi.DefaultCoder |
initialValue() |
byte[] |
serializeObjectToByteArray(java.lang.Object o) |
public ThreadLocalFstSerializer(java.lang.Class<?>... registeredSerializableClasses)
protected org.nustaq.serialization.simpleapi.DefaultCoder initialValue()
initialValue
in class java.lang.ThreadLocal<org.nustaq.serialization.simpleapi.DefaultCoder>
public static java.util.Collection<? extends java.lang.Class<? extends java.io.Serializable>> getClassesToAlwaysRegister()
public byte[] serializeObjectToByteArray(java.lang.Object o)
serializeObjectToByteArray
in interface BlueSerializer
public java.lang.Object deserializeObjectFromByteArray(byte[] bytes) throws SerializationException
deserializeObjectFromByteArray
in interface BlueSerializer
SerializationException
public <T extends java.io.Serializable> T clone(T object)
clone
in interface BlueSerializer