Interface RetryEvent
- All Known Implementing Classes:
RetryOnErrorEvent,RetryOnIgnoredErrorEvent,RetryOnRetryEvent,RetryOnSuccessEvent
public interface RetryEvent
An event which is created by Retry.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumEvent types which are created by a Retry. -
Method Summary
Modifier and TypeMethodDescriptionReturns the creation time of Retry event.Returns the type of the Retry event.Returns the last captured Throwable.getName()Returns the ID of the Retry.intReturns the number of retry attempts.
-
Method Details
-
getName
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 number of retry attempts
-
getEventType
RetryEvent.Type getEventType()Returns the type of the Retry event.- Returns:
- the type of the Retry event
-
getCreationTime
ZonedDateTime getCreationTime()Returns the creation time of Retry event.- Returns:
- the creation time of Retry event
-
getLastThrowable
Throwable getLastThrowable()Returns the last captured Throwable.- Returns:
- the last captured Throwable
-