Package io.quarkus.pulsar.schema
Class ObjectMapperSchema<T>
- java.lang.Object
-
- org.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
- io.quarkus.pulsar.schema.ObjectMapperSchema<T>
-
- All Implemented Interfaces:
Cloneable,org.apache.pulsar.client.api.Schema<T>
public class ObjectMapperSchema<T> extends org.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
-
Constructor Summary
Constructors Constructor Description ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper)ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)ObjectMapperSchema(com.fasterxml.jackson.databind.JavaType javaType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)ObjectMapperSchema(Class<T> type)ObjectMapperSchema(Class<T> type, boolean nullAsNull)ObjectMapperSchema(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)ObjectMapperSchema(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Tdecode(io.netty.buffer.ByteBuf byteBuf)byte[]encode(T message)org.apache.pulsar.common.schema.SchemaInfogetSchemaInfo()static <T> ObjectMapperSchema<T>of(Class<T> type)-
Methods inherited from class org.apache.pulsar.client.impl.schema.AbstractSchema
atSchemaVersion, clone, decode
-
-
-
-
Constructor Detail
-
ObjectMapperSchema
public ObjectMapperSchema(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
ObjectMapperSchema
public ObjectMapperSchema(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)
-
ObjectMapperSchema
public ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
ObjectMapperSchema
public ObjectMapperSchema(com.fasterxml.jackson.core.type.TypeReference<T> typeReference, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)
-
ObjectMapperSchema
public ObjectMapperSchema(com.fasterxml.jackson.databind.JavaType javaType, com.fasterxml.jackson.databind.ObjectMapper objectMapper, boolean nullAsNull)
-
-
Method Detail
-
of
public static <T> ObjectMapperSchema<T> of(Class<T> type)
-
decode
public T decode(io.netty.buffer.ByteBuf byteBuf)
- Specified by:
decodein classorg.apache.pulsar.client.impl.schema.AbstractSchema<T>
-
encode
public byte[] encode(T message)
-
getSchemaInfo
public org.apache.pulsar.common.schema.SchemaInfo getSchemaInfo()
-
-