class documentation

class LockAttemptTimeoutStrategy(object):

View In Hierarchy

Class with lock acquire timeout strategy.

Method __init__ Initializes this class.
Method NextAttempt Returns the timeout for the next attempt.
Class Variable __slots__ Undocumented
Constant _TIMEOUT_PER_ATTEMPT Undocumented
Instance Variable _random_fn Undocumented
Instance Variable _time_fn Undocumented
Instance Variable _timeouts Undocumented
def __init__(self, _time_fn=time.time, _random_fn=random.random):

Initializes this class.

Parameters
_time_fnTime function for unittests
_random_fnRandom number generator for unittests
def NextAttempt(self):

Returns the timeout for the next attempt.

__slots__: list[str] =

Undocumented

_TIMEOUT_PER_ATTEMPT =

Undocumented

Value
_CalculateLockAttemptTimeouts()
_random_fn =

Undocumented

_time_fn =

Undocumented

_timeouts =

Undocumented