Optional ReadonlyclockDefaults to the system clock.
Optional ReadonlyisWhether an error counts against the breaker. An error it declines is not recorded at all: it neither opens nor closes the circuit, and passes through untouched. Defaults to counting every failure.
Optional ReadonlyonReceives circuit-open, circuit-half-open and circuit-close.
Optional ReadonlyprobesCalls let through while the circuit is half-open, and successes needed
to close it. Defaults to 1.
More than one probe closes a recovered dependency faster; every probe is also a call to something that was failing a moment ago.
ReadonlyresetHow long the circuit stays open before one trial call is allowed through.
Optional ReadonlythresholdReadonlywindowThe recent past to judge on.
Trips on the share of recent calls that failed or were slow.