//arrow-fx-coroutines/arrow.fx.coroutines/CircuitBreaker/State/Closed
common class Closed(val failures: Int) : CircuitBreaker.State
Closed is the normal state of the CircuitBreaker, where requests are being made. The state in which CircuitBreaker starts. - When an exceptions occurs it increments the failure counter - A successful request will reset the failure counter to zero - When the failure counter reaches the maxFailures threshold, the breaker is tripped into the Open state
common
failures | is the current failures count |
Closed | common fun Closed(failures: Int) |
Name | Summary |
---|---|
equals | common open operator override fun equals(other: Any?): Boolean |
hashCode | common open override fun hashCode(): Int |
toString | common open override fun toString(): String |
Name | Summary |
---|---|
failures | common val failures: Int |
Do you like Arrow?
✖