GRPC C++  1.39.1
Public Member Functions
grpc_core::internal::ServerRetryThrottleData Class Reference

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 () override
 
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)
 
RefCountedPtr< ServerRetryThrottleData > RefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ServerRetryThrottleData > RefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedoperator= (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 (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Tracks retry throttling data for an individual server name.

Constructor & Destructor Documentation

◆ ServerRetryThrottleData()

grpc_core::internal::ServerRetryThrottleData::ServerRetryThrottleData ( intptr_t  max_milli_tokens,
intptr_t  milli_token_ratio,
ServerRetryThrottleData old_throttle_data 
)

◆ ~ServerRetryThrottleData()

grpc_core::internal::ServerRetryThrottleData::~ServerRetryThrottleData ( )
override

Member Function Documentation

◆ max_milli_tokens()

intptr_t grpc_core::internal::ServerRetryThrottleData::max_milli_tokens ( ) const
inline

◆ milli_token_ratio()

intptr_t grpc_core::internal::ServerRetryThrottleData::milli_token_ratio ( ) const
inline

◆ RecordFailure()

bool grpc_core::internal::ServerRetryThrottleData::RecordFailure ( )

Records a failure. Returns true if it's okay to send a retry.

◆ RecordSuccess()

void grpc_core::internal::ServerRetryThrottleData::RecordSuccess ( )

Records a success.


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