Skip to main content
CrystalDocs
Search documentation
Search
Browse Docs
CrystalShards
About
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
new
Source
Instance methods
attempt_reset
Source
reset
Source
state
Source
trip
Source