Class RetryOnRetryEvent

java.lang.Object
io.github.resilience4j.retry.event.AbstractRetryEvent
io.github.resilience4j.retry.event.RetryOnRetryEvent
All Implemented Interfaces:
RetryEvent

public class RetryOnRetryEvent extends AbstractRetryEvent
A RetryEvent which informs that a call failed, and is to be retried.
  • Field Details

    • waitInterval

      private final Duration waitInterval
  • Constructor Details

    • RetryOnRetryEvent

      public RetryOnRetryEvent(String name, int numberOfAttempts, @Nullable Throwable lastThrowable, long waitInterval)
  • Method Details

    • getEventType

      public RetryEvent.Type getEventType()
      Description copied from interface: RetryEvent
      Returns the type of the Retry event.
      Returns:
      the type of the Retry event
    • getWaitInterval

      public Duration getWaitInterval()
      Returns the interval used to wait before next retry.
      Returns:
      the wait interval
    • toString

      public String toString()
      Overrides:
      toString in class Object