T - POJO type to send and receive via Pulsar.public class JsonSchema<T>
extends org.apache.pulsar.client.impl.schema.AvroBaseStructSchema<T>
ObjectMapper from Micronaut instead of shaded one in Pulsar library.| Constructor and Description |
|---|
JsonSchema(org.apache.pulsar.common.schema.SchemaInfo schemaInfo,
org.apache.pulsar.client.api.schema.SchemaReader<T> reader,
org.apache.pulsar.client.api.schema.SchemaWriter<T> writer) |
| Modifier and Type | Method and Description |
|---|---|
static <T> JsonSchema<T> |
of(java.lang.Class<T> pojo,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
getAvroSchema, getNativeSchemaatSchemaVersion, decode, decode, decode, decode, encode, getReader, getSchemaInfo, setReader, setSchemaInfoProvider, setWriterequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitAUTO_CONSUME, AUTO_PRODUCE_BYTES, AUTO_PRODUCE_BYTES, AUTO, AVRO, AVRO, configureSchemaInfo, decode, generic, getSchema, JSON, JSON, KeyValue, KeyValue, KeyValue, KeyValue, KV_BYTES, PROTOBUF_NATIVE, PROTOBUF_NATIVE, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, supportSchemaVersioning, validatepublic static <T> JsonSchema<T> of(java.lang.Class<T> pojo, com.fasterxml.jackson.databind.ObjectMapper objectMapper)