Interface RetryHandler

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface RetryHandler
Callback invoked on each retry attempt, before publishing the RETRYING event. Use for logging, metrics, or other side effects. Not called during replay.
Since:
5.4.0
Author:
Stefan Dragisic
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final RetryHandler
    Retry handler that performs no side effects.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Invoked when a retry attempt is about to be published and executed.
  • Field Details

    • NOOP

      static final RetryHandler NOOP
      Retry handler that performs no side effects.
  • Method Details

    • onRetry

      void onRetry(RetryContext context)
      Invoked when a retry attempt is about to be published and executed.
      Parameters:
      context - retry context describing the step, attempt, and triggering failure