Package io.micronaut.retry.event
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 java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionRetryEvent
(MethodInvocationContext<?, ?> source, RetryState retryState, Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionMethods inherited from class java.util.EventObject
toString
-
Constructor Details
-
RetryEvent
- Parameters:
source
- The source method invocation context for intercepting method callretryState
- To encapsulate current state intoRetryable
throwable
- The error
-
-
Method Details
-
getRetryState
- Returns:
- The retry context
-
getThrowable
- Returns:
- The exception that caused the retry
-
getSource
- Overrides:
getSource
in classEventObject
-