Class CircuitOpenEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class CircuitOpenEvent
    extends io.micronaut.context.event.ApplicationEvent
    An event fired when the Circuit is CircuitState.OPEN and requests are no longer being accepted.
    Since:
    1.0
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.util.EventObject

        source
    • Constructor Summary

      Constructors 
      Constructor Description
      CircuitOpenEvent​(io.micronaut.inject.ExecutableMethod<?,​?> source, RetryState retryState, java.lang.Throwable throwable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RetryState getRetryState()  
      io.micronaut.inject.ExecutableMethod<?,​?> 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

      • CircuitOpenEvent

        public CircuitOpenEvent​(io.micronaut.inject.ExecutableMethod<?,​?> source,
                                RetryState retryState,
                                java.lang.Throwable throwable)
        Parameters:
        source - A compile time produced invocation of a method call
        retryState - Encapsulate the current state of Retryable operation.
        throwable - The cause
    • Method Detail

      • getRetryState

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

        public java.lang.Throwable getThrowable()
        Returns:
        The original exception that will be rethrown to the user
      • getSource

        public io.micronaut.inject.ExecutableMethod<?,​?> getSource()
        Overrides:
        getSource in class java.util.EventObject
        Returns:
        The method that represents the circuit