Public Member Functions | Private Attributes | List of all members
grpc_core::BackOff::Options Class Reference

#include <backoff.h>

Public Member Functions

Duration initial_backoff () const
 how long to wait after the first failure before retrying More...
 
double jitter () const
 amount to randomize backoffs More...
 
Duration max_backoff () const
 maximum time between retries More...
 
double multiplier () const
 factor with which to multiply backoff after a failed retry More...
 
Optionsset_initial_backoff (Duration initial_backoff)
 
Optionsset_jitter (double jitter)
 
Optionsset_max_backoff (Duration max_backoff)
 
Optionsset_multiplier (double multiplier)
 

Private Attributes

Duration initial_backoff_
 
double jitter_
 
Duration max_backoff_
 
double multiplier_
 

Detailed Description

Definition at line 46 of file backoff.h.

Member Function Documentation

◆ initial_backoff()

Duration grpc_core::BackOff::Options::initial_backoff ( ) const
inline

how long to wait after the first failure before retrying

Definition at line 65 of file backoff.h.

◆ jitter()

double grpc_core::BackOff::Options::jitter ( ) const
inline

amount to randomize backoffs

Definition at line 69 of file backoff.h.

◆ max_backoff()

Duration grpc_core::BackOff::Options::max_backoff ( ) const
inline

maximum time between retries

Definition at line 71 of file backoff.h.

◆ multiplier()

double grpc_core::BackOff::Options::multiplier ( ) const
inline

factor with which to multiply backoff after a failed retry

Definition at line 67 of file backoff.h.

◆ set_initial_backoff()

Options& grpc_core::BackOff::Options::set_initial_backoff ( Duration  initial_backoff)
inline

Definition at line 48 of file backoff.h.

◆ set_jitter()

Options& grpc_core::BackOff::Options::set_jitter ( double  jitter)
inline

Definition at line 56 of file backoff.h.

◆ set_max_backoff()

Options& grpc_core::BackOff::Options::set_max_backoff ( Duration  max_backoff)
inline

Definition at line 60 of file backoff.h.

◆ set_multiplier()

Options& grpc_core::BackOff::Options::set_multiplier ( double  multiplier)
inline

Definition at line 52 of file backoff.h.

Member Data Documentation

◆ initial_backoff_

Duration grpc_core::BackOff::Options::initial_backoff_
private

Definition at line 74 of file backoff.h.

◆ jitter_

double grpc_core::BackOff::Options::jitter_
private

Definition at line 76 of file backoff.h.

◆ max_backoff_

Duration grpc_core::BackOff::Options::max_backoff_
private

Definition at line 77 of file backoff.h.

◆ multiplier_

double grpc_core::BackOff::Options::multiplier_
private

Definition at line 75 of file backoff.h.


The documentation for this class was generated from the following file:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:35