Interface DeadLetterService<P extends DeadLetter>
- All Superinterfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
- All Known Implementing Classes:
DefaultDeadLetterService
public interface DeadLetterService<P extends DeadLetter>
extends com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandleRetry(P deadLetter) Detect if there are any valid handlers available to re-engage the processing flow with a previous failed message.default LongcountOfDeadLetterByStatus(DeadLetterResolutionStatusEnum resolutionStatus) Deprecated.countOfDeadLetterByStatus(DeadLetterResolutionStatusEnum resolutionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.readUnresolvedDeadLetters(DeadLetterQueueNotificationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Generally preferable to useRsqlCrudEntityService.readAll(Node, Pageable, ContextInfo)voidAttempt to re-engage the processing flow with a previous failed message that did not allow the process to complete.default PDeprecated.useCrudEntityService.create(Object, ContextInfo)insteadMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.CrudEntityService
create, createAll, createAllAllowingPartialSuccess, delete, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Method Details
-
save
Deprecated.useCrudEntityService.create(Object, ContextInfo)instead -
findUnresolvedDeadLetters
@Deprecated(since="1.0.0") default List<P> findUnresolvedDeadLetters(DeadLetterQueueNotificationRequest request) Deprecated. -
readUnresolvedDeadLetters
@Deprecated(since="1.0.0") List<P> readUnresolvedDeadLetters(DeadLetterQueueNotificationRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Generally preferable to useRsqlCrudEntityService.readAll(Node, Pageable, ContextInfo) -
countOfDeadLetterByStatus
@Deprecated(since="1.0.0") default Long countOfDeadLetterByStatus(DeadLetterResolutionStatusEnum resolutionStatus) Deprecated. -
countOfDeadLetterByStatus
Long countOfDeadLetterByStatus(DeadLetterResolutionStatusEnum resolutionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
retry
void retry(P deadLetter, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Attempt to re-engage the processing flow with a previous failed message that did not allow the process to complete.- Throws:
IllegalArgumentException- If the system is unable to automatically retry the type of message payload supplied by theDeadLetter
-
canHandleRetry
Detect if there are any valid handlers available to re-engage the processing flow with a previous failed message.
-
countOfDeadLetterByStatus(DeadLetterResolutionStatusEnum, ContextInfo)instead