State

io.chrisdavenport.circuit.CircuitBreaker$.State
sealed abstract class State

An enumeration that models the internal state of CircuitBreaker, kept in an AtomicReference 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

Attributes

Source:
CircuitBreaker.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Closed
object HalfOpen.type
class Open

Members list

Concise view