Class CircuitBreakerOpenEvent

  • All Implemented Interfaces:
    Serializable

    public final class CircuitBreakerOpenEvent
    extends Object
    implements Serializable
    Immutable observations captured when the breaker opens, shared by subsequent locally rejected calls.

    The formatted ObservedFailures count is the sum of the observed failure categories. Attribution to the opening threshold is best effort: error notifications precede breaker metric updates and the diagnostic and metric windows are maintained separately. Observed counts can differ from the captured breaker metrics. A later rejection does not reach the service or add an observed failure.

    See Also:
    Serialized Form
    • Method Detail

      • getCorrelationId

        public String getCorrelationId()
        Returns the identifier shared by this opening and calls rejected because of it.
      • getOpenedAt

        public Instant getOpenedAt()
      • getPreviousState

        public String getPreviousState()
      • getState

        public String getState()
      • getTotalCalls

        public long getTotalCalls()
        Returns the captured breaker buffered-call metric, omitted from the formatted summary.
      • getFailedCalls

        public long getFailedCalls()
        Returns the captured breaker failure metric, which may differ from the observed category sum printed in the summary.
      • getHttpStatusCounts

        public Map<Integer,​Long> getHttpStatusCounts()