class Retriable::Settings

Defined in:

retriable/settings.cr

Instance Method Summary

Instance Method Detail

def backoff=(backoff : Bool) #

[View source]
def backoff? : Bool #

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

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

[View source]
def except : Exception.class | Array(Exception.class) | Nil #

[View source]
def except=(except : Exception.class | Array(Exception.class) | Nil) #

[View source]
def intervals : Array(Time::Span) | Nil #

[View source]
def intervals=(intervals : Array(Time::Span) | Nil) #

[View source]
def max_attempts : Int32 | Nil #

[View source]
def max_attempts=(max_attempts : Int32 | Nil) #

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

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

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

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

[View source]
def multiplier : Float64 #

[View source]
def multiplier=(multiplier : Float64) #

[View source]
def on : Exception.class | Array(Exception.class) | Nil #

[View source]
def on=(on : Exception.class | Array(Exception.class) | Nil) #

[View source]
def on_retry : Proc(Exception, Int32, Time::Span, Time::Span, Nil) | Nil #

[View source]
def on_retry(&block : Exception, Int32, Time::Span, Time::Span -> _) #

[View source]
def on_retry=(on_retry : Proc(Exception, Int32, Time::Span, Time::Span, Nil) | Nil) #

[View source]
def rand_factor : Float64 #

[View source]
def rand_factor=(rand_factor : Float64) #

[View source]
def random : Random #

[View source]
def random=(random : Random) #

[View source]
def sleep_disabled=(sleep_disabled : Bool) #

[View source]
def sleep_disabled? : Bool #

[View source]