class ExponentialBackoff

Defined at line 20 of file ../../src/lib/backoff/exponential_backoff.h

Exponential backoff. The returned backoff delay is D + r:

D = |initial_delay| * |retry_factor| ^ N

r = rand(0, D)

with N denoting the number of consecutive GetNext() calls, starting at 0.

Public Methods

void ExponentialBackoff (fit::function<uint64_t ()> seed_generator)

Defined at line 13 of file ../../src/lib/backoff/exponential_backoff.cc

void ExponentialBackoff (zx::duration initial_delay, uint32_t retry_factor, zx::duration max_delay, fit::function<uint64_t ()> seed_generator)

Defined at line 16 of file ../../src/lib/backoff/exponential_backoff.cc

void ~ExponentialBackoff ()

Defined at line 29 of file ../../src/lib/backoff/exponential_backoff.cc

zx::duration GetNext ()

Defined at line 37 of file ../../src/lib/backoff/exponential_backoff.cc

void Reset ()

Defined at line 49 of file ../../src/lib/backoff/exponential_backoff.cc