Class JsonSerde.JsonDeserializer

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.apache.kafka.common.serialization.Deserializer<T>
    Enclosing class:
    JsonSerde<T>

    private final class JsonSerde.JsonDeserializer
    extends Object
    implements org.apache.kafka.common.serialization.Deserializer<T>
    • Constructor Detail

      • JsonDeserializer

        private JsonDeserializer()
    • Method Detail

      • configure

        public void configure​(Map<String,​?> configs,
                              boolean isKey)
        Specified by:
        configure in interface org.apache.kafka.common.serialization.Deserializer<T>
      • deserialize

        public T deserialize​(String topic,
                             byte[] data)
        Specified by:
        deserialize in interface org.apache.kafka.common.serialization.Deserializer<T>
      • readValue

        private T readValue​(com.fasterxml.jackson.databind.JsonNode node)
                     throws IOException
        Throws:
        IOException
      • readKey

        private T readKey​(com.fasterxml.jackson.databind.JsonNode node)
                   throws IOException
        Throws:
        IOException
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.apache.kafka.common.serialization.Deserializer<T>