Class RetryEvent

All Implemented Interfaces:
Serializable

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

    • RetryEvent

      public RetryEvent(MethodInvocationContext<?,?> source, RetryState retryState, Throwable throwable)
      Creates a retry event.
      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.
      Returns:
      The retry context
    • getThrowable

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

      public MethodInvocationContext<?,?> getSource()
      Overrides:
      getSource in class EventObject