Class AmqpMessageHeaderErrorMessageStrategy
java.lang.Object
org.springframework.integration.amqp.support.AmqpMessageHeaderErrorMessageStrategy
- All Implemented Interfaces:
ErrorMessageStrategy
An
ErrorMessageStrategy
extension that adds the raw AMQP message as
a header to the ErrorMessage
.- Since:
- 4.3.10
- Author:
- Gary Russell, Artem Bilan
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Header name/retry context variable for the raw received message. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuildErrorMessage
(Throwable throwable, AttributeAccessor context) Build the error message.
-
Field Details
-
AMQP_RAW_MESSAGE
Header name/retry context variable for the raw received message.- See Also:
-
-
Constructor Details
-
AmqpMessageHeaderErrorMessageStrategy
public AmqpMessageHeaderErrorMessageStrategy()
-
-
Method Details
-
buildErrorMessage
Description copied from interface:ErrorMessageStrategy
Build the error message.- Specified by:
buildErrorMessage
in interfaceErrorMessageStrategy
- Parameters:
throwable
- the payload.context
- the attributes.- Returns:
- the ErrorMessage.
-