Class JSONSchemaUtil.CustomJacksonJsonWriter<T>

java.lang.Object
org.springframework.pulsar.core.JSONSchemaUtil.CustomJacksonJsonWriter<T>
Type Parameters:
T - object type to write
All Implemented Interfaces:
org.apache.pulsar.client.api.schema.SchemaWriter<T>
Enclosing interface:
JSONSchemaUtil

public static class JSONSchemaUtil.CustomJacksonJsonWriter<T> extends Object implements org.apache.pulsar.client.api.schema.SchemaWriter<T>
Writer implementation for writing objects as JSON using a custom ObjectMapper.
  • Method Details

    • write

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