Class RetryOnSuccessEvent

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

public class RetryOnSuccessEvent
extends java.lang.Object
A RetryEvent which informs that a call has been retried and a retry was successful. This event is not published when a call was successful without a retry attempt.
  • Nested Class Summary

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

    RetryEvent.Type
  • Constructor Summary

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

    • RetryOnSuccessEvent

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