Class ConsumerDeserializer<K,V>
java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<org.apache.kafka.clients.consumer.Consumer<K,V>>
com.arpnetworking.metrics.common.kafka.ConsumerDeserializer<K,V>
- Type Parameters:
K
- the type of key field inConsumer
V
- the type of value field inConsumer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider
public class ConsumerDeserializer<K,V>
extends com.fasterxml.jackson.databind.JsonDeserializer<org.apache.kafka.clients.consumer.Consumer<K,V>>
Jackson
JsonDeserializer
implementation for Consumer
.- Author:
- Joey Jackson (jjackson at dropbox dot com)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonDeserializer
com.fasterxml.jackson.databind.JsonDeserializer.None
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondeserialize
(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer
deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer
-
Constructor Details
-
ConsumerDeserializer
public ConsumerDeserializer()
-
-
Method Details
-
deserialize
public org.apache.kafka.clients.consumer.Consumer<K,V> deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
deserialize
in classcom.fasterxml.jackson.databind.JsonDeserializer<org.apache.kafka.clients.consumer.Consumer<K,
V>> - Throws:
IOException
com.fasterxml.jackson.core.JsonProcessingException
-