Interface Serializer

All Known Subinterfaces:
ByteArraySerializer<T>, StreamSerializer<T>
All Known Implementing Classes:
ProtobufSerializer

public interface Serializer
Base interface of custom serialization interfaces

see ByteArraySerializer see StreamSerializer

  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Called when instance is shutting down.
    int
    Uniquely identifies given serializer.
  • Method Details

    • getTypeId

      int getTypeId()
      Uniquely identifies given serializer.
      Returns:
      typeId of serializer
    • destroy

      default void destroy()
      Called when instance is shutting down. It can be used to clear used resources.