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.

@Deprecated(forRemoval=true, since="4.0") @FunctionalInterface public interface JsonTypeResolver
Deprecated, for removal: This API element is subject to removal in a future version.
since 4.0 in favor of JacksonJsonTypeResolver for Jackson 3.
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, @Nullable org.apache.kafka.common.header.Headers headers)
    Deprecated, for removal: This API element is subject to removal in a future version.
    Determine the type.
  • Method Details

    • resolveType

      com.fasterxml.jackson.databind.JavaType resolveType(String topic, byte[] data, @Nullable org.apache.kafka.common.header.Headers headers)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Determine the type.
      Parameters:
      topic - the topic.
      data - the serialized data.
      headers - the headers.
      Returns:
      the type.