Class RetryOnIgnoredErrorEvent

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

public class RetryOnIgnoredErrorEvent
extends java.lang.Object
A RetryEvent which informs that an error has been ignored. It will not be retried.

An error is ignored when the exception is determined to be non-retriable, as determined by the RetryConfig.

  • Nested Class Summary

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

    RetryEvent.Type
  • Constructor Summary

    Constructors 
    Constructor Description
    RetryOnIgnoredErrorEvent​(java.lang.String name, 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

    • RetryOnIgnoredErrorEvent

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