Number of failures before opening the circuit.
5
Time window in ms to count failures.
60000
How long to stay open before trying half-open.
30000
Number of successful probes in half-open before closing.
2
Optional onOptional callback when state transitions.
Unique name for this breaker (for logging/metrics).