Class JsonObjectSerde<T>
java.lang.Object
io.micronaut.configuration.kafka.serde.JsonObjectSerde<T>
- Type Parameters:
T
- The type to serialize/deserialize
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Deserializer<T>
,Serde<T>
,Serializer<T>
@Prototype
public class JsonObjectSerde<T>
extends Object
implements Serializer<T>, Deserializer<T>, Serde<T>
A
Serializer
and Deserializer
for JSON.- Since:
- 4.1.0
- Author:
- Denis Stepanov
-
Constructor Summary
ConstructorDescriptionJsonObjectSerde
(io.micronaut.json.JsonObjectSerializer objectSerializer, Class<T> type) Constructs a new instance for the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
deserialize
(String topic, byte[] data) byte[]
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.kafka.common.serialization.Deserializer
deserialize, deserialize
Methods inherited from interface org.apache.kafka.common.serialization.Serializer
serialize
-
Constructor Details
-
Method Details
-
deserialize
- Specified by:
deserialize
in interfaceDeserializer<T>
-
configure
- Specified by:
configure
in interfaceDeserializer<T>
- Specified by:
configure
in interfaceSerde<T>
- Specified by:
configure
in interfaceSerializer<T>
-
serialize
- Specified by:
serialize
in interfaceSerializer<T>
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in interfaceDeserializer<T>
- Specified by:
close
in interfaceSerde<T>
- Specified by:
close
in interfaceSerializer<T>
-
serializer
- Specified by:
serializer
in interfaceSerde<T>
-
deserializer
- Specified by:
deserializer
in interfaceSerde<T>
-
toString
-