Interface SchemaWriter<T>

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@Public @Stable @FunctionalInterface public interface SchemaWriter<T>
Serialize messages into bytes.
  • Method Summary

    Modifier and Type
    Method
    Description
    byte[]
    write(T message)
    Serialize the message into bytes.
  • Method Details

    • write

      byte[] write(T message)
      Serialize the message into bytes.
      Parameters:
      message - the message for encode
      Returns:
      the serialized bytes