Class ProtobufWriter<T>

java.lang.Object
io.micronaut.pulsar.schemas.protobuf.ProtobufWriter<T>
Type Parameters:
T - POJO type to process.
All Implemented Interfaces:
org.apache.pulsar.client.api.schema.SchemaWriter<T>

public final class ProtobufWriter<T> extends Object implements org.apache.pulsar.client.api.schema.SchemaWriter<T>
Protobuf Schema Writer to allow using ProtobufferCodec from Micronaut.
Since:
1.1.0
Author:
Haris Secic
  • Constructor Details

    • ProtobufWriter

      public ProtobufWriter(io.micronaut.protobuf.codec.ProtobufferCodec codec)
  • Method Details

    • write

      public byte[] write(Object message)
      Specified by:
      write in interface org.apache.pulsar.client.api.schema.SchemaWriter<T>