class Session::CircuitBreakerConfig

Overview

Circuit Breaker configuration

Defined in:

retry.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(failure_threshold : Int32 = 5, reset_timeout : Time::Span = 30.seconds, half_open_max_calls : Int32 = 1) #

[View source]

Instance Method Detail

def failure_threshold : Int32 #

[View source]
def failure_threshold=(failure_threshold : Int32) #

[View source]
def half_open_max_calls : Int32 #

[View source]
def half_open_max_calls=(half_open_max_calls : Int32) #

[View source]
def reset_timeout : Time::Span #

[View source]
def reset_timeout=(reset_timeout : Time::Span) #

[View source]