Implementation of the backoff mechanism described in doc/connection-backoff.md.
More...
#include <backoff.h>
Implementation of the backoff mechanism described in doc/connection-backoff.md.
◆ BackOff()
grpc_core::BackOff::BackOff |
( |
const Options & |
options | ) |
|
|
explicit |
Initialize backoff machinery - does not need to be destroyed.
◆ NextAttemptTime()
Returns the time at which the next attempt should start.
◆ Reset()
void grpc_core::BackOff::Reset |
( |
| ) |
|
Reset the backoff, so the next value returned by NextAttemptTime() will be the time of the second attempt (rather than the Nth).
◆ SetRandomSeed()
void grpc_core::BackOff::SetRandomSeed |
( |
unsigned int |
seed | ) |
|
The documentation for this class was generated from the following file: