Classes | Public Types | Public Member Functions | Private Attributes | List of all members
grpc_core::XdsEndpointResource::DropConfig Class Reference

#include <xds_endpoint.h>

Inheritance diagram for grpc_core::XdsEndpointResource::DropConfig:
Inheritance graph
[legend]

Classes

struct  DropCategory
 

Public Types

using DropCategoryList = std::vector< DropCategory >
 
- Public Types inherited from grpc_core::RefCounted< DropConfig >
using RefCountedChildType = DropConfig
 

Public Member Functions

void AddCategory (std::string name, uint32_t parts_per_million)
 
bool drop_all () const
 
const DropCategoryListdrop_category_list () const
 
bool operator!= (const DropConfig &other) const
 
bool operator== (const DropConfig &other) const
 
bool ShouldDrop (const std::string **category_name) const
 
std::string ToString () const
 
- Public Member Functions inherited from grpc_core::RefCounted< DropConfig >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< DropConfig > Ref () GRPC_MUST_USE_RESULT
 
RefCountedPtr< DropConfig > Ref (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< DropConfig > RefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< DropConfig > RefIfNonZero (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
void Unref ()
 
void Unref (const DebugLocation &location, const char *reason)
 
 ~RefCounted ()=default
 
- Public Member Functions inherited from grpc_core::PolymorphicRefCount
virtual ~PolymorphicRefCount ()=default
 

Private Attributes

bool drop_all_ = false
 
DropCategoryList drop_category_list_
 

Additional Inherited Members

- Protected Member Functions inherited from grpc_core::RefCounted< DropConfig >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 

Detailed Description

Definition at line 71 of file xds_endpoint.h.

Member Typedef Documentation

◆ DropCategoryList

Definition at line 83 of file xds_endpoint.h.

Member Function Documentation

◆ AddCategory()

void grpc_core::XdsEndpointResource::DropConfig::AddCategory ( std::string  name,
uint32_t  parts_per_million 
)
inline

Definition at line 85 of file xds_endpoint.h.

◆ drop_all()

bool grpc_core::XdsEndpointResource::DropConfig::drop_all ( ) const
inline

Definition at line 99 of file xds_endpoint.h.

◆ drop_category_list()

const DropCategoryList& grpc_core::XdsEndpointResource::DropConfig::drop_category_list ( ) const
inline

Definition at line 95 of file xds_endpoint.h.

◆ operator!=()

bool grpc_core::XdsEndpointResource::DropConfig::operator!= ( const DropConfig other) const
inline

Definition at line 104 of file xds_endpoint.h.

◆ operator==()

bool grpc_core::XdsEndpointResource::DropConfig::operator== ( const DropConfig other) const
inline

Definition at line 101 of file xds_endpoint.h.

◆ ShouldDrop()

bool grpc_core::XdsEndpointResource::DropConfig::ShouldDrop ( const std::string **  category_name) const

Definition at line 87 of file xds_endpoint.cc.

◆ ToString()

std::string grpc_core::XdsEndpointResource::DropConfig::ToString ( ) const

Definition at line 101 of file xds_endpoint.cc.

Member Data Documentation

◆ drop_all_

bool grpc_core::XdsEndpointResource::DropConfig::drop_all_ = false
private

Definition at line 110 of file xds_endpoint.h.

◆ drop_category_list_

DropCategoryList grpc_core::XdsEndpointResource::DropConfig::drop_category_list_
private

Definition at line 109 of file xds_endpoint.h.


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


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