Classes | Public Member Functions | Private Attributes | List of all members
grpc_core::ChannelInit::Builder Class Reference

#include <channel_init.h>

Classes

struct  Slot
 

Public Member Functions

ChannelInit Build ()
 
void RegisterStage (grpc_channel_stack_type type, int priority, Stage stage)
 

Private Attributes

std::vector< Slotslots_ [GRPC_NUM_CHANNEL_STACK_TYPES]
 

Detailed Description

Definition at line 46 of file channel_init.h.

Member Function Documentation

◆ Build()

ChannelInit grpc_core::ChannelInit::Builder::Build ( )

Finalize registration. No more calls to grpc_channel_init_register_stage are allowed.

Definition at line 32 of file channel_init.cc.

◆ RegisterStage()

void grpc_core::ChannelInit::Builder::RegisterStage ( grpc_channel_stack_type  type,
int  priority,
Stage  stage 
)

Register one stage of mutators. Stages are run in priority order (lowest to highest), and then in registration order (in the case of a tie). Stages are registered against one of the pre-determined channel stack types. If the channel stack type is GRPC_CLIENT_SUBCHANNEL, the caller should ensure that subchannels with different filter lists will always have different channel args. This requires setting a channel arg in case the registration function relies on some condition other than channel args to decide whether to add a filter or not.

Definition at line 27 of file channel_init.cc.

Member Data Documentation

◆ slots_

std::vector<Slot> grpc_core::ChannelInit::Builder::slots_[GRPC_NUM_CHANNEL_STACK_TYPES]
private

Definition at line 71 of file channel_init.h.


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


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