Closed

final case class Closed(failures: Int) extends State

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

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 Open state
Value Params
failures

is the current failures count

trait Serializable
trait Product
trait Equals
class State
class Object
trait Matchable
class Any

Value members

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product