Package io.micronaut.pulsar.schemas.json
Class JsonReader<T>
java.lang.Object
io.micronaut.pulsar.schemas.json.JsonReader<T>
- Type Parameters:
- T- POJO type to process.
- All Implemented Interfaces:
- org.apache.pulsar.client.api.schema.SchemaReader<T>
public final class JsonReader<T>
extends Object
implements org.apache.pulsar.client.api.schema.SchemaReader<T>
JSON Schema Reader to allow using 
JsonMapper from Micronaut instead of shaded one in Pulsar library.- Since:
- 1.0
- Author:
- Haris Secic
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionread(byte[] bytes, int offset, int length) read(InputStream inputStream) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.pulsar.client.api.schema.SchemaReadergetNativeSchema, read, read, read, setSchemaInfoProvider
- 
Constructor Details- 
JsonReader- Parameters:
- jsonMapper- The json mapper to use for reading
- pojo- The pojo type to read
- Since:
- 1.1.0
 
 
- 
- 
Method Details