Interface JsonTypeResolver

  • Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface JsonTypeResolver
    Determine the JavaType from the topic/data/headers.
    Since:
    2.5.3
    Author:
    Gary Russell
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.fasterxml.jackson.databind.JavaType resolveType​(java.lang.String topic, byte[] data, org.apache.kafka.common.header.Headers headers)
      Determine the type.
    • Method Detail

      • resolveType

        com.fasterxml.jackson.databind.JavaType resolveType​(java.lang.String topic,
                                                            byte[] data,
                                                            org.apache.kafka.common.header.Headers headers)
        Determine the type.
        Parameters:
        topic - the topic.
        data - the serialized data.
        headers - the headers.
        Returns:
        the type.