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

Closed

class Closed : State

The initial State of the CircuitBreaker. While in this state, the circuit breaker allows tasks to be executed.

Contract:

  • Exceptions increment the failures counter.
  • Successes reset the failure count to zero.
  • When the failures counter reaches the maxFailures count, the breaker is tripped into the CircuitBreaker.Open state.

Parameters

failures - is the current failures count

Constructors

<init> The initial State of the CircuitBreaker. While in this state, the circuit breaker allows tasks to be executed.Closed(failures: Int)

Properties

failures is the current failures countval failures: Int

Functions

equals fun equals(other: Any?): Boolean
hashCode fun hashCode(): Int
toString fun toString(): String

Do you like Arrow?

Arrow Org
<