|
GRPC Core
9.0.0
|
Tracks retry throttling data for an individual server name. More...
#include <retry_throttle.h>
Public Member Functions | |
| ServerRetryThrottleData (intptr_t max_milli_tokens, intptr_t milli_token_ratio, ServerRetryThrottleData *old_throttle_data) | |
| ~ServerRetryThrottleData () | |
| bool | RecordFailure () |
| Records a failure. Returns true if it's okay to send a retry. More... | |
| void | RecordSuccess () |
| Records a success. More... | |
| intptr_t | max_milli_tokens () const |
| intptr_t | milli_token_ratio () const |
Public Member Functions inherited from grpc_core::RefCounted< ServerRetryThrottleData > | |
| ~RefCounted ()=default | |
| RefCountedPtr< ServerRetryThrottleData > | Ref () GRPC_MUST_USE_RESULT |
| RefCountedPtr< ServerRetryThrottleData > | Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT |
| void | Unref () |
| void | Unref (const DebugLocation &location, const char *reason) |
| bool | RefIfNonZero () |
| bool | RefIfNonZero (const DebugLocation &location, const char *reason) |
| RefCounted (const RefCounted &)=delete | |
| RefCounted & | operator= (const RefCounted &)=delete |
Public Member Functions inherited from grpc_core::PolymorphicRefCount | |
| virtual | ~PolymorphicRefCount ()=default |
Additional Inherited Members | |
Protected Member Functions inherited from grpc_core::RefCounted< ServerRetryThrottleData > | |
| RefCounted (TraceFlagT *trace_flag=nullptr, intptr_t initial_refcount=1) | |
Tracks retry throttling data for an individual server name.
| grpc_core::internal::ServerRetryThrottleData::ServerRetryThrottleData | ( | intptr_t | max_milli_tokens, |
| intptr_t | milli_token_ratio, | ||
| ServerRetryThrottleData * | old_throttle_data | ||
| ) |
| grpc_core::internal::ServerRetryThrottleData::~ServerRetryThrottleData | ( | ) |
|
inline |
|
inline |
| bool grpc_core::internal::ServerRetryThrottleData::RecordFailure | ( | ) |
Records a failure. Returns true if it's okay to send a retry.
| void grpc_core::internal::ServerRetryThrottleData::RecordSuccess | ( | ) |
Records a success.