Update apache-kafka-2/src/main/java/com/baeldung/kafka/message/ordering/serialization/JacksonDeserializer.java
Co-authored-by: Liam Williams <liam.williams@zoho.com>
This commit is contained in:
parent
540da8c779
commit
c3af2facae
|
@ -4,6 +4,10 @@ import org.apache.kafka.common.serialization.Deserializer;
|
|||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* Configured via {@link org.apache.kafka.clients.consumer.ConsumerConfig#VALUE_DESERIALIZER_CLASS_CONFIG}
|
||||
*/
|
||||
@SuppressWarnings("unused")
|
||||
public class JacksonDeserializer<T> implements Deserializer<T> {
|
||||
private final ObjectMapper objectMapper = new ObjectMapper();
|
||||
private Class<T> tClass;
|
||||
|
|
Loading…
Reference in New Issue