Class TypeSerializerSingleton<T>

    • Constructor Detail

      • TypeSerializerSingleton

        public TypeSerializerSingleton()
    • Method Detail

      • duplicate

        public TypeSerializerSingleton<T> duplicate()
        Description copied from class: TypeSerializer
        Creates a deep copy of this serializer if it is necessary, i.e. if it is stateful. This can return itself if the serializer is not stateful.

        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.

        Specified by:
        duplicate in class TypeSerializer<T>