GRPC C++  1.26.0
Data Structures | Public Member Functions
grpc_core::BackOff Class Reference

Implementation of the backoff mechanism described in doc/connection-backoff.md. More...

#include <backoff.h>

Data Structures

class  Options
 

Public Member Functions

 BackOff (const Options &options)
 Initialize backoff machinery - does not need to be destroyed. More...
 
grpc_millis NextAttemptTime ()
 Returns the time at which the next attempt should start. More...
 
void Reset ()
 Reset the backoff, so the next value returned by NextAttemptTime() will be the time of the second attempt (rather than the Nth). More...
 
void SetRandomSeed (unsigned int seed)
 

Detailed Description

Implementation of the backoff mechanism described in doc/connection-backoff.md.

Constructor & Destructor Documentation

◆ BackOff()

grpc_core::BackOff::BackOff ( const Options options)
explicit

Initialize backoff machinery - does not need to be destroyed.

Member Function Documentation

◆ NextAttemptTime()

grpc_millis grpc_core::BackOff::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: