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

State

sealed class State

The initial state when initializing a CircuitBreaker is Closed.

The available states are:

  • Closed in case tasks are allowed to go through
  • Open in case the circuit breaker is active and rejects incoming tasks
  • HalfOpen in case a reset attempt was triggered and it is waiting for the result in order to evolve in Closed, or back to Open

Types

Closed The initial State of the CircuitBreaker. While in this state, the circuit breaker allows tasks to be executed.class Closed : State
HalfOpen class HalfOpen : State
Open class Open : State

Do you like Arrow?

Arrow Org
<