Sets success threshold needed to close from HALF_OPEN.
In HALF_OPEN, this many consecutive successes are required to return to CLOSED state.
| n |
success threshold. |
|
Result.ok(this breaker), or Result.error(CircuitBreakerError.INVALID_ARGUMENT) when n is not positive. |