Go to the documentation of this file.
19 #ifndef GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_RETRY_THROTTLE_H
20 #define GRPC_CORE_EXT_FILTERS_CLIENT_CHANNEL_RETRY_THROTTLE_H
29 #include "absl/base/thread_annotations.h"
82 std::map<std::string, RefCountedPtr<ServerRetryThrottleData>>;
intptr_t milli_token_ratio() const
ServerRetryThrottleData(intptr_t max_milli_tokens, intptr_t milli_token_ratio, ServerRetryThrottleData *old_throttle_data)
bool RecordFailure()
Records a failure. Returns true if it's okay to send a retry.
static ServerRetryThrottleMap * Get()
StringToDataMap map_ ABSL_GUARDED_BY(mu_)
RefCountedPtr< ServerRetryThrottleData > GetDataForServer(const std::string &server_name, intptr_t max_milli_tokens, intptr_t milli_token_ratio)
Global map of server name to retry throttle data.
const intptr_t max_milli_tokens_
Tracks retry throttling data for an individual server name.
std::map< std::string, RefCountedPtr< ServerRetryThrottleData > > StringToDataMap
const intptr_t milli_token_ratio_
void RecordSuccess()
Records a success.
intptr_t max_milli_tokens() const
~ServerRetryThrottleData() override
void GetReplacementThrottleDataIfNeeded(ServerRetryThrottleData **throttle_data)
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:01:11