Interface RetryHandler

All Known Implementing Classes:
DefaultRetryHandler

public interface RetryHandler
Retry notification on a set schedule for unacknowledged NotificationStateAware instances belonging to a specific NotificationStateRepository instance.
Author:
Jeff Fischer
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Register a list of consumers of retry handler lifecycle events.
    void
    Perform the retry processing logic
    void
    Commence the scheduled processing via a new thread
    void
    Stop scheduled processing and exit the processing thread
  • Method Details

    • start

      void start()
      Commence the scheduled processing via a new thread
    • stop

      void stop()
      Stop scheduled processing and exit the processing thread
    • execute

      void execute()
      Perform the retry processing logic
    • addConsumers

      default void addConsumers(List<Consumer<RetryHandlerStatus>> consumers)
      Register a list of consumers of retry handler lifecycle events.
      Parameters:
      consumers - Consumers of retry handler lifecycle events
      Throws:
      UnsupportedOperationException - if not supported by the handler