Interface RetryEvent

All Known Implementing Classes:
RetryOnErrorEvent, RetryOnIgnoredErrorEvent, RetryOnRetryEvent, RetryOnSuccessEvent

public interface RetryEvent
An event which is created by Retry.
  • Nested Class Summary

    Nested Classes 
    Modifier and Type Interface Description
    static class  RetryEvent.Type
    Event types which are created by a Retry.
  • 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.
  • Method Details

    • getName

      java.lang.String getName()
      Returns the ID of the Retry.
      Returns:
      the ID of the Retry
    • getNumberOfRetryAttempts

      int getNumberOfRetryAttempts()
      Returns the number of retry attempts.
      Returns:
      the the number of retry attempts
    • getEventType

      RetryEvent.Type getEventType()
      Returns the type of the Retry event.
      Returns:
      the type of the Retry event
    • getCreationTime

      java.time.ZonedDateTime getCreationTime()
      Returns the creation time of Retry event.
      Returns:
      the creation time of Retry event
    • getLastThrowable

      java.lang.Throwable getLastThrowable()
      Returns the last captured Throwable.
      Returns:
      the last captured Throwable