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>
A
Serde that (de-)serializes JSON using Jackson's ObjectMapper.-
Constructor Summary
ConstructorsConstructorDescriptionObjectMapperSerde(Class<T> type) ObjectMapperSerde(Class<T> type, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
-
Constructor Details
-
ObjectMapperSerde
-
ObjectMapperSerde
-
-
Method Details
-
configure
- 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
- Specified by:
serializerin interfaceorg.apache.kafka.common.serialization.Serde<T>
-
deserializer
- Specified by:
deserializerin interfaceorg.apache.kafka.common.serialization.Serde<T>
-