Class RetryEvent
java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.retry.event.RetryEvent
- All Implemented Interfaces:
Serializable
An event triggered on each retry.
- Since:
- 1.0
- Author:
- graemerocher
- See Also:
-
Field Summary
Fields inherited from class EventObject
source -
Constructor Summary
ConstructorsConstructorDescriptionRetryEvent(MethodInvocationContext<?, ?> source, RetryState retryState, Throwable throwable) Creates a retry event. -
Method Summary
Modifier and TypeMethodDescriptionReturns the retry context.Returns the exception that caused the retry.Methods inherited from class EventObject
toString
-
Constructor Details
-
RetryEvent
Creates a retry event.- Parameters:
source- The source method invocation context for intercepting method callretryState- To encapsulate current state intoRetryablethrowable- The error
-
-
Method Details
-
getRetryState
-
getThrowable
Returns the exception that caused the retry.- Returns:
- The exception that caused the retry
-
getSource
- Overrides:
getSourcein classEventObject
-