Class: Nervion::NetworkWaitCalculator

Inherits:
WaitCalculator show all
Defined in:
lib/nervion/reconnection_scheduler.rb

Constant Summary collapse

MIN_WAIT =
0.25
MAX_WAIT =
16

Instance Method Summary collapse

Methods inherited from WaitCalculator

#wait_after

Constructor Details

#initializeNetworkWaitCalculator

Returns a new instance of NetworkWaitCalculator.



89
90
91
# File 'lib/nervion/reconnection_scheduler.rb', line 89

def initialize
  super(MAX_WAIT) { |error_count| MIN_WAIT * error_count }
end