Class CircuitOpenEvent

java.lang.Object
java.util.EventObject
io.micronaut.context.event.ApplicationEvent
io.micronaut.retry.event.CircuitOpenEvent
All Implemented Interfaces:
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:
  • Constructor Details

    • CircuitOpenEvent

      public CircuitOpenEvent(io.micronaut.inject.ExecutableMethod<?,?> source, RetryState retryState, 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 Details

    • getRetryState

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

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

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