Tracks retry throttling data for an individual server name. More...
#include <retry_throttle.h>
Private Member Functions | |
void | GetReplacementThrottleDataIfNeeded (ServerRetryThrottleData **throttle_data) |
Private Attributes | |
const intptr_t | max_milli_tokens_ |
const intptr_t | milli_token_ratio_ |
gpr_atm | milli_tokens_ |
gpr_atm | replacement_ = 0 |
Additional Inherited Members | |
![]() | |
using | RefCountedChildType = ServerRetryThrottleData |
![]() | |
RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1) | |
Tracks retry throttling data for an individual server name.
Definition at line 41 of file retry_throttle.h.
grpc_core::internal::ServerRetryThrottleData::ServerRetryThrottleData | ( | intptr_t | max_milli_tokens, |
intptr_t | milli_token_ratio, | ||
ServerRetryThrottleData * | old_throttle_data | ||
) |
Definition at line 36 of file retry_throttle.cc.
|
override |
Definition at line 64 of file retry_throttle.cc.
|
private |
Definition at line 73 of file retry_throttle.cc.
|
inline |
Definition at line 53 of file retry_throttle.h.
|
inline |
Definition at line 54 of file retry_throttle.h.
bool grpc_core::internal::ServerRetryThrottleData::RecordFailure | ( | ) |
Records a failure. Returns true if it's okay to send a retry.
Definition at line 84 of file retry_throttle.cc.
void grpc_core::internal::ServerRetryThrottleData::RecordSuccess | ( | ) |
Records a success.
Definition at line 99 of file retry_throttle.cc.
Definition at line 60 of file retry_throttle.h.
Definition at line 61 of file retry_throttle.h.
|
private |
Definition at line 62 of file retry_throttle.h.
|
private |
Definition at line 66 of file retry_throttle.h.