Class JacksonJsonWriter<T>

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

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

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

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

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

      • JacksonJsonWriter

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

      • write

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