Interface DeadLetterRetryHandler<P extends DeadLetter>
- All Superinterfaces:
org.springframework.core.Ordered
- All Known Implementing Classes:
ProcessPaymentsDeadLetterRetryHandler,TaxCalculationHandlerRequestDeadLetterRetryHandler,UndeterminedMessageDeadLetterRetryHandler
public interface DeadLetterRetryHandler<P extends DeadLetter>
extends org.springframework.core.Ordered
Attempt to re-engage the processing flow with a previous failed message that did not allow the
process to complete.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Method Summary
Modifier and TypeMethodDescriptionbooleanWhether this handler is able to process the message payload typedefault intgetOrder()Attempt to retry message payload from the DeadLetter.
-
Method Details
-
canHandle
Whether this handler is able to process the message payload type -
retry
P retry(P deadLetter, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Attempt to retry message payload from the DeadLetter.- Throws:
IllegalArgumentException- If the handler determines there is a problem that prevents it from using the message payload
-
getOrder
default int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-