class Obsctl::Runtime::ReconnectPolicy

Overview

Computes bounded exponential reconnect delays from config.

Defined in:

obsctl/runtime/reconnect_policy.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(config : Config::ReconnectConfig) #

Creates a reconnect policy view over the configured reconnect settings.


[View source]

Instance Method Detail

def delay_for(attempt : Int32) : Time::Span #

Returns the delay for a zero-based reconnect attempt.


[View source]