Interface PojoSerializer<O>

  • All Known Implementing Classes:
    KryoSerializer

    public interface PojoSerializer<O>
    Interface implemented by serializers. The serializer for a particular object can be configured via the PersistenceConfig annotation.

    Implementations of this interface are expected to provide a constructor which takes two arguments: (Class objectType, PersistenceConfig persistenceConfig).

    Author:
    npgall
    • Method Detail

      • serialize

        byte[] serialize​(O object)
      • deserialize

        O deserialize​(byte[] bytes)