Class KafkaNullAwarePayloadArgumentResolver

java.lang.Object
org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver
org.springframework.kafka.annotation.KafkaNullAwarePayloadArgumentResolver
All Implemented Interfaces:
HandlerMethodArgumentResolver

public class KafkaNullAwarePayloadArgumentResolver extends PayloadMethodArgumentResolver
PayloadMethodArgumentResolver that can properly decode KafkaNull payloads, returning null. When using a custom MessageHandlerMethodFactory, add this resolver if you need to handle tombstone records with null values.
Since:
2.7.4
Author:
Gary Russell