Class JsonbSerde<T>
- java.lang.Object
-
- io.quarkus.kafka.client.serialization.JsonbSerde<T>
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
,org.apache.kafka.common.serialization.Serde<T>
public class JsonbSerde<T> extends Object implements org.apache.kafka.common.serialization.Serde<T>
ASerde
that (de-)serializes JSON using JSON-B.
-
-
Constructor Summary
Constructors Constructor Description JsonbSerde(Class<T> type)
JsonbSerde(Class<T> type, javax.json.bind.Jsonb jsonb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
configure(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:
configure
in interfaceorg.apache.kafka.common.serialization.Serde<T>
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceorg.apache.kafka.common.serialization.Serde<T>
-
serializer
public org.apache.kafka.common.serialization.Serializer<T> serializer()
- Specified by:
serializer
in interfaceorg.apache.kafka.common.serialization.Serde<T>
-
-