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(Class<T> pojo,
io.micronaut.json.JsonMapper jsonMapper) |
static <T> JsonSchema<T> |
of(Class<T> pojo,
com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Deprecated.
Use
of(Class, JsonMapper) instead |
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, NATIVE_AVRO, PROTOBUF_NATIVE, PROTOBUF_NATIVE, PROTOBUF, PROTOBUF, requireFetchingSchemaInfo, supportSchemaVersioning, validate@Deprecated public static <T> JsonSchema<T> of(Class<T> pojo, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
of(Class, JsonMapper) insteadT - The pojo class to mappojo - The pojo class to mapobjectMapper - The jackson object mapper to use for mappingpublic static <T> JsonSchema<T> of(Class<T> pojo, io.micronaut.json.JsonMapper jsonMapper)
T - The pojo class to mappojo - The pojo class to mapjsonMapper - The json mapper to use for mapping