Class JsonWriter<T>

  • Type Parameters:
    T -
    All Implemented Interfaces:
    org.apache.pulsar.client.api.schema.SchemaWriter<T>

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

      Constructors 
      Constructor Description
      JsonWriter​(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
      Deprecated.
       
    • Method Summary

      All Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      byte[] write​(T message)
      Deprecated.
       
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JsonWriter

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

      • write

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