Class: Nervion::HttpWaitCalculator
- Inherits:
-
WaitCalculator
- Object
- WaitCalculator
- Nervion::HttpWaitCalculator
- Defined in:
- lib/nervion/reconnection_scheduler.rb
Constant Summary collapse
- MIN_WAIT =
10
- MAX_WAIT =
240
Instance Method Summary collapse
-
#initialize ⇒ HttpWaitCalculator
constructor
A new instance of HttpWaitCalculator.
Methods inherited from WaitCalculator
Constructor Details
#initialize ⇒ HttpWaitCalculator
Returns a new instance of HttpWaitCalculator.
80 81 82 |
# File 'lib/nervion/reconnection_scheduler.rb', line 80 def initialize super(MAX_WAIT) { |error_count| MIN_WAIT * 2**(error_count - 1) } end |