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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionread
(byte[] bytes, int offset, int length) read
(InputStream inputStream) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.pulsar.client.api.schema.SchemaReader
getNativeSchema, read, read, read, setSchemaInfoProvider
-
Constructor Details
-
JsonReader
- Parameters:
jsonMapper
- The json mapper to use for readingpojo
- The pojo type to read- Since:
- 1.1.0
-
-
Method Details