OptionalfailureNumber of failures in the window before opening the circuit. Default: 5
OptionalwindowSliding-window size (number of most-recent calls tracked). Set to 0 for consecutive-count mode (any 5 in a row). Default: 10
OptionalresetHow long to keep the circuit OPEN before probing (ms). Default: 30_000
OptionalsuccessNumber of consecutive successes in HALF_OPEN needed to close. Default: 2
OptionalhalfMaximum in-flight probe requests allowed in HALF_OPEN. Default: 1
OptionalfailuresWhich error categories count as failures.
OptionalonCalled when the circuit opens.
OptionalonCalled when the circuit closes (recovers).
OptionalonCalled when the circuit enters half-open.
OptionalonCalled when a request is rejected due to an open circuit.
Full circuit breaker configuration.