Class UndeterminedMessageDeadLetterRetryHandler<P extends DeadLetter>
java.lang.Object
com.broadleafcommerce.deadletter.service.impl.UndeterminedMessageDeadLetterRetryHandler<P>
- Type Parameters:
P- The DeadLetter entity type
- All Implemented Interfaces:
DeadLetterRetryHandler<P>,org.springframework.core.Ordered
public class UndeterminedMessageDeadLetterRetryHandler<P extends DeadLetter>
extends Object
implements DeadLetterRetryHandler<P>
Variant specifically designed for re-introducing a generic caught message that previously failed
for what was determined to be an unrecoverable reason without manual intervention. By default,
this handler will not handle any message types. However, supported types can be added as a yaml
list via the
deadletter.message.uniform-handler-supported property. Note, this handler by
default provides no message manipulation or cleansing and will simply push the message payload
directly back into the relevant BillingJobMessageSender method.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DeadLetterService<P>protected DeadLetterPropertiesprotected BillingJobMessageSenderFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
deadLetterService
-
sender
-
properties
-
-
Constructor Details
-
UndeterminedMessageDeadLetterRetryHandler
public UndeterminedMessageDeadLetterRetryHandler()
-
-
Method Details
-
canHandle
Description copied from interface:DeadLetterRetryHandlerWhether this handler is able to process the message payload type- Specified by:
canHandlein interfaceDeadLetterRetryHandler<P extends DeadLetter>
-
retry
@Transactional public P retry(P deadLetter, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:DeadLetterRetryHandlerAttempt to retry message payload from the DeadLetter.- Specified by:
retryin interfaceDeadLetterRetryHandler<P extends DeadLetter>
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceDeadLetterRetryHandler<P extends DeadLetter>- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-