TsgcWSCircuitBreaker › Events

TsgcWSCircuitBreaker Events

Events you can handle, grouped by purpose, followed by the full alphabetical list.

State lifecycle

NameDescription
OnStateChangeFired when a circuit transitions between Closed, Open and HalfOpen.
OnCallRejectedFired when the breaker refuses a call because the circuit is Open or the HalfOpen trial budget is exhausted.
OnFallbackFired just before a fallback response is returned while the circuit is Open; the handler may replace the payload.
OnFailureRecordedFired every time a failure is recorded against a circuit, after Classification has accepted it.
OnSlowCallFired when a successful call exceeds Thresholds.SlowCallDurationMs.

All Events (alphabetical)

NameDescription
OnCallRejectedFired when the breaker refuses a call because the circuit is Open or the HalfOpen trial budget is exhausted.
OnFailureRecordedFired every time a failure is recorded against a circuit, after Classification has accepted it.
OnFallbackFired just before a fallback response is returned while the circuit is Open; the handler may replace the payload.
OnSlowCallFired when a successful call exceeds Thresholds.SlowCallDurationMs.
OnStateChangeFired when a circuit transitions between Closed, Open and HalfOpen.