ganeti :: utils :: retry :: _RetryDelayCalculator :: Class _RetryDelayCalculator
[hide private]
[frames] | no frames]

Class _RetryDelayCalculator

source code


Calculator for increasing delays.

Instance Methods [hide private]
 
__init__(self, start, factor, limit)
Initializes this class.
source code
 
__call__(self)
Returns current delay and calculates the next one.
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, start, factor, limit)
(Constructor)

source code 

Initializes this class.

Parameters:
  • start (float) - Initial delay
  • factor (float) - Factor for delay increase
  • limit (float or None) - Upper limit for delay or None for no limit
Overrides: object.__init__