Class JsonWriter<T>

java.lang.Object
org.apache.pulsar.client.impl.schema.writer.JsonWriter<T>
Type Parameters:
T -
All Implemented Interfaces:
org.apache.pulsar.client.api.schema.SchemaWriter<T>

@Deprecated public class JsonWriter<T> extends Object implements org.apache.pulsar.client.api.schema.SchemaWriter<T>
Deprecated.
use JacksonJsonWriter instead.
Writer implementation for writing objects as JSON.
  • Constructor Details

    • JsonWriter

      public JsonWriter(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Deprecated.
  • Method Details

    • write

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