Class RetryOnErrorEvent

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

public class RetryOnErrorEvent
extends java.lang.Object
A RetryEvent which informs that a call has been retried, but still failed, such that the the maximum number of attempts has been reached. It will not be retried any more.
  • Nested Class Summary

    Nested classes/interfaces inherited from interface io.github.resilience4j.retry.event.RetryEvent

    RetryEvent.Type
  • Constructor Summary

    Constructors 
    Constructor Description
    RetryOnErrorEvent​(java.lang.String name, int numberOfAttempts, java.lang.Throwable lastThrowable)  
  • Method Summary

    Modifier and Type Method Description
    java.time.ZonedDateTime getCreationTime()
    Returns the creation time of Retry event.
    RetryEvent.Type getEventType()
    Returns the type of the Retry event.
    java.lang.Throwable getLastThrowable()
    Returns the last captured Throwable.
    java.lang.String getName()
    Returns the ID of the Retry.
    int getNumberOfRetryAttempts()
    Returns the number of retry attempts.
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • RetryOnErrorEvent

      public RetryOnErrorEvent​(java.lang.String name, int numberOfAttempts, @Nullable java.lang.Throwable lastThrowable)
  • Method Details