Class RetryEvent

java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.retry.event.RetryEvent
All Implemented Interfaces:
Serializable

public class RetryEvent extends io.micronaut.context.event.ApplicationEvent
An event triggered on each retry.
Since:
1.0
See Also:
  • Constructor Details

    • RetryEvent

      public RetryEvent(io.micronaut.aop.MethodInvocationContext<?,?> source, RetryState retryState, Throwable throwable)
      Parameters:
      source - The source method invocation context for intercepting method call
      retryState - To encapsulate current state into Retryable
      throwable - The error
  • Method Details

    • getRetryState

      public RetryState getRetryState()
      Returns:
      The retry context
    • getThrowable

      public Throwable getThrowable()
      Returns:
      The exception that caused the retry
    • getSource

      public io.micronaut.aop.MethodInvocationContext<?,?> getSource()
      Overrides:
      getSource in class EventObject