Class KafkaNullAwarePayloadArgumentResolver
java.lang.Object
org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver
org.springframework.kafka.annotation.KafkaNullAwarePayloadArgumentResolver
- All Implemented Interfaces:
HandlerMethodArgumentResolver
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, Wang Zhiyang
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isEmptyPayload
(Object payload) resolveArgument
(MethodParameter parameter, Message<?> message) Methods inherited from class org.springframework.messaging.handler.annotation.support.PayloadMethodArgumentResolver
resolveTargetClass, supportsParameter, validate
-
Method Details
-
resolveArgument
- Specified by:
resolveArgument
in interfaceHandlerMethodArgumentResolver
- Overrides:
resolveArgument
in classPayloadMethodArgumentResolver
- Throws:
Exception
-
isEmptyPayload
- Overrides:
isEmptyPayload
in classPayloadMethodArgumentResolver
-