Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
grpc_core::internal::ServerRetryThrottleMap Class Reference

Global map of server name to retry throttle data. More...

#include <retry_throttle.h>

Public Member Functions

RefCountedPtr< ServerRetryThrottleDataGetDataForServer (const std::string &server_name, intptr_t max_milli_tokens, intptr_t milli_token_ratio)
 

Static Public Member Functions

static ServerRetryThrottleMapGet ()
 

Private Types

using StringToDataMap = std::map< std::string, RefCountedPtr< ServerRetryThrottleData > >
 

Private Member Functions

StringToDataMap map_ ABSL_GUARDED_BY (mu_)
 

Private Attributes

Mutex mu_
 

Detailed Description

Global map of server name to retry throttle data.

Definition at line 70 of file retry_throttle.h.

Member Typedef Documentation

◆ StringToDataMap

Definition at line 82 of file retry_throttle.h.

Member Function Documentation

◆ ABSL_GUARDED_BY()

StringToDataMap map_ grpc_core::internal::ServerRetryThrottleMap::ABSL_GUARDED_BY ( mu_  )
private

◆ Get()

ServerRetryThrottleMap * grpc_core::internal::ServerRetryThrottleMap::Get ( )
static

Definition at line 115 of file retry_throttle.cc.

◆ GetDataForServer()

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.

Member Data Documentation

◆ mu_

Mutex grpc_core::internal::ServerRetryThrottleMap::mu_
private

Definition at line 84 of file retry_throttle.h.


The documentation for this class was generated from the following files:


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:38