Class DefaultDeadLetterService<P extends DeadLetter>
java.lang.Object
com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService<P>
com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
com.broadleafcommerce.deadletter.service.impl.DefaultDeadLetterService<P>
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.service.CrudEntityService<P>,com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService<P>,DeadLetterService<P>
public class DefaultDeadLetterService<P extends DeadLetter>
extends com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService<P>
implements DeadLetterService<P>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected DeadLetterPropertiesprotected List<DeadLetterRetryHandler<P>> -
Constructor Summary
ConstructorsConstructorDescriptionDefaultDeadLetterService(DeadLetterRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper) -
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.countOfDeadLetterByStatus(DeadLetterResolutionStatusEnum resolutionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) findDeadLettersByDateRangeAndStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.findDeadLettersByEndDateAndStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.findDeadLettersByStartDateAndStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.findDeadLettersByStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.protected intreadUnresolvedDeadLetters(DeadLetterQueueNotificationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.voidAttempt to re-engage the processing flow with a previous failed message that did not allow the process to complete.Methods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseRsqlCrudEntityService
getRsqlHelper, readAll, readAll, readAll, readAllMethods inherited from class com.broadleafcommerce.data.tracking.core.service.BaseCrudEntityService
convertFromPersistentDomain, convertToPersistentDomain, create, createAll, createAllAllowingPartialSuccess, delete, getHelper, getRepository, getSortPositionStrategy, readAll, readAll, readAll, readAllByContextId, readByContextId, replace, replaceAll, replaceAllAllowingPartialSuccess, setSortPositionStrategy, update, updateAll, updateAllAllowingPartialSuccess, updateSortMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.deadletter.service.DeadLetterService
countOfDeadLetterByStatus, findUnresolvedDeadLetters, saveMethods inherited from interface com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityService
readAll, readAll, readAll, readAll
-
Field Details
-
properties
-
retryHandlers
-
-
Constructor Details
-
DefaultDeadLetterService
public DefaultDeadLetterService(DeadLetterRepository<com.broadleafcommerce.data.tracking.core.Trackable> repository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper)
-
-
Method Details
-
canHandleRetry
Description copied from interface:DeadLetterServiceDetect if there are any valid handlers available to re-engage the processing flow with a previous failed message.- Specified by:
canHandleRetryin interfaceDeadLetterService<P extends DeadLetter>
-
retry
public void retry(P deadLetter, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Description copied from interface:DeadLetterServiceAttempt to re-engage the processing flow with a previous failed message that did not allow the process to complete.- Specified by:
retryin interfaceDeadLetterService<P extends DeadLetter>
-
readUnresolvedDeadLetters
@Deprecated(since="1.0.0") public List<P> readUnresolvedDeadLetters(DeadLetterQueueNotificationRequest request, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Generally preferable to useBaseRsqlCrudEntityService.readAll(Node, Pageable, ContextInfo)- Specified by:
readUnresolvedDeadLettersin interfaceDeadLetterService<P extends DeadLetter>
-
findDeadLettersByDateRangeAndStatus
@Deprecated(since="1.0.0") protected List<P> findDeadLettersByDateRangeAndStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
findDeadLettersByStartDateAndStatus
@Deprecated(since="1.0.0") protected List<P> findDeadLettersByStartDateAndStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
findDeadLettersByEndDateAndStatus
@Deprecated(since="1.0.0") protected List<P> findDeadLettersByEndDateAndStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
findDeadLettersByStatus
@Deprecated(since="1.0.0") protected List<P> findDeadLettersByStatus(DeadLetterQueueNotificationRequest request, DeadLetterResolutionStatusEnum resolutionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
countOfDeadLetterByStatus
public Long countOfDeadLetterByStatus(DeadLetterResolutionStatusEnum resolutionStatus, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) - Specified by:
countOfDeadLetterByStatusin interfaceDeadLetterService<P extends DeadLetter>
-
getNumberOfDeadLettersToRender
-
BaseRsqlCrudEntityService.readAll(Node, Pageable, ContextInfo)