class
Obsctl::Runtime::ReconnectPolicy
- Obsctl::Runtime::ReconnectPolicy
- Reference
- Object
Overview
Computes bounded exponential reconnect delays from config.
Defined in:
obsctl/runtime/reconnect_policy.crConstructors
-
.new(config : Config::ReconnectConfig)
Creates a reconnect policy view over the configured reconnect settings.
Instance Method Summary
-
#delay_for(attempt : Int32) : Time::Span
Returns the delay for a zero-based reconnect attempt.
Constructor Detail
def self.new(config : Config::ReconnectConfig)
#
Creates a reconnect policy view over the configured reconnect settings.