Class DefaultMessagingErrorHandler
java.lang.Object
com.broadleafcommerce.deadletter.service.impl.DefaultMessagingErrorHandler
- All Implemented Interfaces:
MessagingErrorHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.fasterxml.jackson.databind.ObjectMapperprotected final DeadLetterMessageSender -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidrecordError(String subscriptionName, JobRequest messagePayload, String messageUUID, String receiptUUID, Exception e, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Records the given arguments onto aDeadLetterobject and sends it to the dead letter queuevoidrecordError(org.springframework.messaging.support.ErrorMessage errorMessage) Parses the given error message to resolve the necessary message fieldsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.broadleafcommerce.messaging.MessagingErrorHandler
recordError
-
Field Details
-
sender
-
objectMapper
@Autowired protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
DefaultMessagingErrorHandler
-
-
Method Details
-
recordError
public void recordError(String subscriptionName, JobRequest messagePayload, String messageUUID, String receiptUUID, Exception e, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:MessagingErrorHandlerRecords the given arguments onto aDeadLetterobject and sends it to the dead letter queue- Specified by:
recordErrorin interfaceMessagingErrorHandler
-
recordError
public void recordError(org.springframework.messaging.support.ErrorMessage errorMessage) Description copied from interface:MessagingErrorHandlerParses the given error message to resolve the necessary message fields- Specified by:
recordErrorin interfaceMessagingErrorHandler
-