class

Obsctl::Runtime::ReconnectPolicy

Inherits Reference < Object

Computes bounded exponential reconnect delays from config.

Constructors

new(config : Config::ReconnectConfig)

Creates a reconnect policy view over the configured reconnect settings.

Source

Instance methods

delay_for(attempt : Int32) : Time::Span

Returns the delay for a zero-based reconnect attempt.

Source