#include <grpc/support/port_platform.h>
#include "src/core/ext/filters/client_channel/retry_throttle.h"
#include <map>
#include <string>
#include <utility>
#include <grpc/support/atm.h>
namespace grpc_core {
namespace internal {
ServerRetryThrottleData::ServerRetryThrottleData(
uintptr_t max_milli_tokens, uintptr_t milli_token_ratio,
ServerRetryThrottleData* old_throttle_data)
: … { … }
ServerRetryThrottleData::~ServerRetryThrottleData() { … }
void ServerRetryThrottleData::GetReplacementThrottleDataIfNeeded(
ServerRetryThrottleData** throttle_data) { … }
bool ServerRetryThrottleData::RecordFailure() { … }
void ServerRetryThrottleData::RecordSuccess() { … }
ServerRetryThrottleMap* ServerRetryThrottleMap::Get() { … }
RefCountedPtr<ServerRetryThrottleData> ServerRetryThrottleMap::GetDataForServer(
const std::string& server_name, uintptr_t max_milli_tokens,
uintptr_t milli_token_ratio) { … }
}
}