Class AbstractRetryEvent
java.lang.Object
io.github.resilience4j.retry.event.AbstractRetryEvent
- All Implemented Interfaces:
RetryEvent
- Direct Known Subclasses:
RetryOnErrorEvent, RetryOnIgnoredErrorEvent, RetryOnRetryEvent, RetryOnSuccessEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface RetryEvent
RetryEvent.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ZonedDateTimeprivate final Throwableprivate final Stringprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionAbstractRetryEvent(String name, int numberOfAttempts, Throwable lastThrowable) -
Method Summary
Modifier and TypeMethodDescriptionReturns the creation time of Retry event.Returns the last captured Throwable.getName()Returns the ID of the Retry.intReturns the number of retry attempts.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface RetryEvent
getEventType
-
Field Details
-
name
-
creationTime
-
numberOfAttempts
private final int numberOfAttempts -
lastThrowable
-
-
Constructor Details
-
AbstractRetryEvent
-
-
Method Details
-
getName
Description copied from interface:RetryEventReturns the ID of the Retry.- Specified by:
getNamein interfaceRetryEvent- Returns:
- the ID of the Retry
-
getCreationTime
Description copied from interface:RetryEventReturns the creation time of Retry event.- Specified by:
getCreationTimein interfaceRetryEvent- Returns:
- the creation time of Retry event
-
getNumberOfRetryAttempts
public int getNumberOfRetryAttempts()Description copied from interface:RetryEventReturns the number of retry attempts.- Specified by:
getNumberOfRetryAttemptsin interfaceRetryEvent- Returns:
- the number of retry attempts
-
getLastThrowable
Description copied from interface:RetryEventReturns the last captured Throwable.- Specified by:
getLastThrowablein interfaceRetryEvent- Returns:
- the last captured Throwable
-