State

sealed abstract class State

An enumeration that models the internal state of CircuitBreaker, kept in an Atomic for synchronization.

An enumeration that models the internal state of CircuitBreaker, kept in an Atomic for synchronization.

The initial state when initializing a CircuitBreaker is Closed. The available states:

  • 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
class Object
trait Matchable
class Any
class Closed
class Open
class HalfOpen