Interface RetryEvent
-
- All Known Implementing Classes:
RetryOnErrorEvent,RetryOnIgnoredErrorEvent,RetryOnRetryEvent,RetryOnSuccessEvent
public interface RetryEventAn event which is created by Retry.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classRetryEvent.TypeEvent types which are created by a Retry.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.time.ZonedDateTimegetCreationTime()Returns the creation time of Retry event.RetryEvent.TypegetEventType()Returns the type of the Retry event.java.lang.ThrowablegetLastThrowable()Returns the last captured Throwable.java.lang.StringgetName()Returns the ID of the Retry.intgetNumberOfRetryAttempts()Returns the number of retry attempts.
-
-
-
Method Detail
-
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
-
-