//arrow-fx-coroutines/arrow.fx.coroutines/CircuitBreaker/State/Closed

Closed

common class Closed(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

Parameters

common

   
failures is the current failures count

Constructors

   
Closed common fun Closed(failures: Int)

Functions

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

Properties

Name Summary
failures common val failures: Int

Do you like Arrow?

Arrow Org
<