Class AmqpMessageHeaderErrorMessageStrategy
java.lang.Object
org.springframework.integration.amqp.support.AmqpMessageHeaderErrorMessageStrategy
- All Implemented Interfaces:
org.springframework.integration.support.ErrorMessageStrategy
public class AmqpMessageHeaderErrorMessageStrategy
extends Object
implements org.springframework.integration.support.ErrorMessageStrategy
An
ErrorMessageStrategy extension that adds the raw AMQP message as
a header to the ErrorMessage.- Since:
- 4.3.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHeader name/retry context variable for the raw received message. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.messaging.support.ErrorMessagebuildErrorMessage(Throwable throwable, org.springframework.core.AttributeAccessor context)
-
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
public org.springframework.messaging.support.ErrorMessage buildErrorMessage(Throwable throwable, @Nullable org.springframework.core.AttributeAccessor context) - Specified by:
buildErrorMessagein interfaceorg.springframework.integration.support.ErrorMessageStrategy
-