Class: Nervion::NetworkWaitCalculator
- Inherits:
-
WaitCalculator
- Object
- WaitCalculator
- Nervion::NetworkWaitCalculator
- Defined in:
- lib/nervion/reconnection_scheduler.rb
Constant Summary collapse
- MIN_WAIT =
0.25
- MAX_WAIT =
16
Instance Method Summary collapse
-
#initialize ⇒ NetworkWaitCalculator
constructor
A new instance of NetworkWaitCalculator.
Methods inherited from WaitCalculator
Constructor Details
#initialize ⇒ NetworkWaitCalculator
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 |