19 #ifndef GRPC_CORE_LIB_BACKOFF_BACKOFF_H
20 #define GRPC_CORE_LIB_BACKOFF_BACKOFF_H
69 double jitter()
const {
return jitter_; }
81 const Options options_;
Options & set_multiplier(double multiplier)
Definition: backoff.h:52
Options & set_jitter(double jitter)
Definition: backoff.h:56
grpc_millis initial_backoff() const
how long to wait after the first failure before retrying
Definition: backoff.h:65
grpc_millis max_backoff() const
maximum time between retries
Definition: backoff.h:71
Options & set_max_backoff(grpc_millis max_backoff)
Definition: backoff.h:60
double jitter() const
amount to randomize backoffs
Definition: backoff.h:69
Options & set_initial_backoff(grpc_millis initial_backoff)
Definition: backoff.h:48
double multiplier() const
factor with which to multiply backoff after a failed retry
Definition: backoff.h:67
Implementation of the backoff mechanism described in doc/connection-backoff.md.
Definition: backoff.h:30
void SetRandomSeed(unsigned int seed)
Definition: backoff.cc:76
void Reset()
Reset the backoff, so the next value returned by NextAttemptTime() will be the time of the second att...
Definition: backoff.cc:71
grpc_millis NextAttemptTime()
Returns the time at which the next attempt should start.
Definition: backoff.cc:55
BackOff(const Options &options)
Initialize backoff machinery - does not need to be destroyed.
Definition: backoff.cc:49
int64_t grpc_millis
Definition: exec_ctx.h:35
Round Robin Policy.
Definition: backend_metric.cc:24