Class CircuitOpenEvent

All Implemented Interfaces:
Serializable

public class CircuitOpenEvent extends ApplicationEvent
An event fired when the Circuit is CircuitState.OPEN and requests are no longer being accepted.
Since:
1.0
Author:
graemerocher
See Also:
  • Constructor Details

    • CircuitOpenEvent

      public CircuitOpenEvent(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 ExecutableMethod<?,?> getSource()
      Overrides:
      getSource in class EventObject
      Returns:
      The method that represents the circuit