public abstract class SerializerSingleton<T> extends Object implements Serializer<T>
Serializer
.Constructor and Description |
---|
SerializerSingleton() |
Modifier and Type | Method and Description |
---|---|
SerializerSingleton<T> |
duplicate()
Creates a deep copy of this serializer if it is necessary, i.e.
|
boolean |
equals(Object obj) |
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
copy, deserialize, deserializeFromString, serialize, serializeToString
public SerializerSingleton<T> duplicate()
Serializer
We need this because Serializers might be used in several threads. Stateless serializers are inherently thread-safe while stateful serializers might not be thread-safe.
duplicate
in interface Serializer<T>
Copyright © 2023–2024 The Apache Software Foundation. All rights reserved.