Class ObjectMapperSerde<T>
- java.lang.Object
-
- io.quarkus.kafka.client.serialization.ObjectMapperSerde<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.serialization.Serde<T>
public class ObjectMapperSerde<T> extends Object implements org.apache.kafka.common.serialization.Serde<T>
ASerdethat (de-)serializes JSON using Jackson's ObjectMapper.
-
-
Constructor Summary
Constructors Constructor Description ObjectMapperSerde(Class<T> type)ObjectMapperSerde(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfigure(Map<String,?> configs, boolean isKey)org.apache.kafka.common.serialization.Deserializer<T>deserializer()org.apache.kafka.common.serialization.Serializer<T>serializer()
-
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs, boolean isKey)
- Specified by:
configurein interfaceorg.apache.kafka.common.serialization.Serde<T>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.kafka.common.serialization.Serde<T>
-
serializer
public org.apache.kafka.common.serialization.Serializer<T> serializer()
- Specified by:
serializerin interfaceorg.apache.kafka.common.serialization.Serde<T>
-
-