struct Retriable::ExponentialBackoff

Defined in:

retriable/exponential_backoff.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(base_interval : Time::Span, max_interval : Time::Span, rand_factor : Float64, multiplier : Float64, random : Random | Nil = nil) #

[View source]

Instance Method Detail

def base_interval : Time::Span #

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

[View source]
def intervals : Iterator(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 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 randomize? #

[View source]