Go to the documentation of this file.
19 #ifndef GRPC_CORE_LIB_BACKOFF_BACKOFF_H
20 #define GRPC_CORE_LIB_BACKOFF_BACKOFF_H
24 #include "absl/random/random.h"
Timestamp NextAttemptTime()
Returns the time at which the next attempt should start.
BackOff(const Options &options)
Initialize backoff machinery - does not need to be destroyed.
Duration initial_backoff() const
how long to wait after the first failure before retrying
Options & set_initial_backoff(Duration initial_backoff)
Duration current_backoff_
current delay before retries
double multiplier() const
factor with which to multiply backoff after a failed retry
Options & set_max_backoff(Duration max_backoff)
Duration initial_backoff_
Options & set_jitter(double jitter)
double jitter() const
amount to randomize backoffs
Options & set_multiplier(double multiplier)
Duration max_backoff() const
maximum time between retries
grpc
Author(s):
autogenerated on Thu Mar 13 2025 02:58:35