Packages

final class Open extends State

State of the CircuitBreaker in which the circuit breaker rejects all tasks with an ExecutionRejectedException.

Contract:

  • all tasks fail fast with ExecutionRejectedException
  • after the configured resetTimeout, the circuit breaker enters a HalfOpen state, allowing one task to go through for testing the connection
Source
CircuitBreaker.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Open
  2. State
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. def equals(other: Any): Boolean
    Definition Classes
    Open → AnyRef → Any
  2. val expiresAt: Timestamp

    The timestamp in milliseconds since the epoch, specifying when the Open state is to transition to HalfOpen.

    The timestamp in milliseconds since the epoch, specifying when the Open state is to transition to HalfOpen.

    It is calculated as: startedAt + resetTimeout.toMillis

  3. def hashCode(): Int
    Definition Classes
    Open → AnyRef → Any
  4. val resetTimeout: FiniteDuration
  5. val startedAt: Timestamp