Package com.networknt.kafka.common
Class JsonPOJODeserializer<T>
- java.lang.Object
-
- com.networknt.kafka.common.JsonPOJODeserializer<T>
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.apache.kafka.common.serialization.Deserializer<T>
public class JsonPOJODeserializer<T> extends Object implements org.apache.kafka.common.serialization.Deserializer<T>
-
-
Constructor Summary
Constructors Constructor Description JsonPOJODeserializer()Default constructor needed by Kafka
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidconfigure(Map<String,?> props, boolean isKey)Tdeserialize(String topic, byte[] bytes)
-
-
-
Method Detail
-
configure
public void configure(Map<String,?> props, boolean isKey)
- Specified by:
configurein interfaceorg.apache.kafka.common.serialization.Deserializer<T>
-
deserialize
public T deserialize(String topic, byte[] bytes)
- Specified by:
deserializein interfaceorg.apache.kafka.common.serialization.Deserializer<T>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceorg.apache.kafka.common.serialization.Deserializer<T>
-
-