Class RetryEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class RetryEvent
    extends io.micronaut.context.event.ApplicationEvent
    An event triggered on each retry.
    Since:
    1.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      RetryEvent​(io.micronaut.aop.MethodInvocationContext<?,​?> source, RetryState retryState, java.lang.Throwable throwable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RetryState getRetryState()  
      io.micronaut.aop.MethodInvocationContext<?,​?> getSource()  
      java.lang.Throwable getThrowable()  
      • Methods inherited from class java.util.EventObject

        toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • RetryEvent

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

      • getRetryState

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

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

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