Interface FailedEventPublications

All Known Implementing Classes:
DefaultFailedEventPublications

public interface FailedEventPublications
All uncompleted event publications.
Since:
2.0
Author:
Oliver Drotbohm
  • Method Details

    • resubmit

      void resubmit(ResubmissionOptions options)
      Initiate the re-submission of failed EventPublication according to the given ResubmissionOptions.
      Parameters:
      options - must not be null.
    • applyAbandonPolicy

      void applyAbandonPolicy()
      Applies the globally configured AbandonPolicy beans (and framework-provided default) to all currently failed EventPublications, marking the ones it decides to give up on as EventPublication.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 AbandonPolicy to apply it to publications that already failed before that policy existed.

      Since:
      2.2
      See Also:
    • applyAbandonPolicy

      void applyAbandonPolicy(AbandonPolicy policy)
      Applies the given AbandonPolicy -- instead of the globally configured ones -- to all currently failed EventPublications, marking the ones it decides to give up on as EventPublication.Status.ABANDONED. The framework-provided default (based on the configured resubmission attempts) still applies as the fallback for AbandonPolicy.Decision.DEFAULT decisions.

      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: