Interface FailedEventPublications
- All Known Implementing Classes:
DefaultFailedEventPublications
public interface FailedEventPublications
All uncompleted event publications.
- Since:
- 2.0
- Author:
- Oliver Drotbohm
-
Method Summary
Modifier and TypeMethodDescriptionvoidApplies the globally configuredAbandonPolicybeans (and framework-provided default) to all currently failedEventPublications, marking the ones it decides to give up on asEventPublication.Status.ABANDONED.voidapplyAbandonPolicy(AbandonPolicy policy) Applies the givenAbandonPolicy-- instead of the globally configured ones -- to all currently failedEventPublications, marking the ones it decides to give up on asEventPublication.Status.ABANDONED.voidresubmit(ResubmissionOptions options) Initiate the re-submission of failedEventPublicationaccording to the givenResubmissionOptions.
-
Method Details
-
resubmit
Initiate the re-submission of failedEventPublicationaccording to the givenResubmissionOptions.- Parameters:
options- must not be null.
-
applyAbandonPolicy
void applyAbandonPolicy()Applies the globally configuredAbandonPolicybeans (and framework-provided default) to all currently failedEventPublications, marking the ones it decides to give up on asEventPublication.Status.ABANDONED.This is an explicit, on-demand operation. It is not run automatically and, in particular, does not retroactively abandon anything unless invoked. Use it, for example, right after registering a new
AbandonPolicyto apply it to publications that already failed before that policy existed.- Since:
- 2.2
- See Also:
-
applyAbandonPolicy
Applies the givenAbandonPolicy-- instead of the globally configured ones -- to all currently failedEventPublications, marking the ones it decides to give up on asEventPublication.Status.ABANDONED. The framework-provided default (based on the configured resubmission attempts) still applies as the fallback forAbandonPolicy.Decision.DEFAULTdecisions.This is an explicit, on-demand operation. It is not run automatically and, in particular, does not retroactively abandon anything unless invoked.
- Parameters:
policy- must not be null.- Since:
- 2.2
- See Also:
-