search

goog.math.ExponentialBackoff

Provided By

No description available.

new ExponentialBackoff( initialValue, maxValue, opt_randomFactor, opt_backoffFactor, opt_decayFactor )

Parameters
initialValuenumber

The initial backoff value.

maxValuenumber

The maximum backoff value.

opt_randomFactornumber=

When set, adds randomness to the backoff and decay to avoid a thundering herd problem. Should be a number between 0 and 1, where 0 means no randomness and 1 means a factor of 0x to 2x.

opt_backoffFactornumber=

The factor to backoff by. Defaults to 2. Should be a number greater than 1.

opt_decayFactornumber=

The factor to decay by. Defaults to 2. Should be a number greater than one.

Instance Methods