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
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JavaType
    resolveType(String topic, byte[] data, org.apache.kafka.common.header.Headers headers)
    Determine the type.
  • Method Details

    • resolveType

      com.fasterxml.jackson.databind.JavaType resolveType(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.