Circuit::Breaker
Inherits JSON::Serializable < Reference < Object
Constructors
new(pull : JSON::PullParser)
Sourcenew(name : String | Nil = nil, failure_threshold : Int32 = 5, reset_timeout : Time::Span = 60.seconds, errors : Array(Exception.class) = [] of Exception.class, exclude : Array(Exception.class) = [] of Exception.class)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
call
Sourceerrors
Sourceexclude
Sourcefailure_count
Sourcefailure_threshold
Sourcelast_failure_time
Sourcename
Sourcereset
Sourcereset_timeout
Sourcestate
Source