class

CircuitState

Inherits Reference < Object

Constants

ALLOWED_TRANSITIONS = {CLOSED => [OPEN], OPEN => [HALF_OPEN], HALF_OPEN => [OPEN, CLOSED]}
CLOSED = :closed
HALF_OPEN = :half_open
OPEN = :open

Constructors

Instance methods

attempt_reset
Source
reset
Source
state
Source
trip
Source