Global map of server name to retry throttle data. More...
#include <retry_throttle.h>
Public Member Functions | |
RefCountedPtr< ServerRetryThrottleData > | GetDataForServer (const std::string &server_name, intptr_t max_milli_tokens, intptr_t milli_token_ratio) |
Static Public Member Functions | |
static ServerRetryThrottleMap * | Get () |
Private Types | |
using | StringToDataMap = std::map< std::string, RefCountedPtr< ServerRetryThrottleData > > |
Private Member Functions | |
StringToDataMap map_ | ABSL_GUARDED_BY (mu_) |
Private Attributes | |
Mutex | mu_ |
Global map of server name to retry throttle data.
Definition at line 70 of file retry_throttle.h.
|
private |
Definition at line 82 of file retry_throttle.h.
|
private |
|
static |
Definition at line 115 of file retry_throttle.cc.
RefCountedPtr< ServerRetryThrottleData > grpc_core::internal::ServerRetryThrottleMap::GetDataForServer | ( | const std::string & | server_name, |
intptr_t | max_milli_tokens, | ||
intptr_t | milli_token_ratio | ||
) |
Returns the failure data for server_name, creating a new entry if needed.
Definition at line 120 of file retry_throttle.cc.
|
private |
Definition at line 84 of file retry_throttle.h.