Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc_core::Channel Class Reference

#include <channel.h>

Inheritance diagram for grpc_core::Channel:
Inheritance graph
[legend]

Public Member Functions

MemoryAllocatorallocator ()
 
size_t CallSizeEstimate ()
 
grpc_channel_stackchannel_stack () const
 
channelz::ChannelNodechannelz_node () const
 
grpc_compression_options compression_options () const
 
bool is_client () const
 
RegisteredCallRegisterCall (const char *method, const char *host)
 
absl::string_view target () const
 
int TestOnlyRegisteredCalls ()
 
int TestOnlyRegistrationAttempts ()
 
void UpdateCallSizeEstimate (size_t size)
 
- Public Member Functions inherited from grpc_core::RefCounted< Channel >
RefCountedoperator= (const RefCounted &)=delete
 
RefCountedPtr< ChannelRef () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ChannelRef (const DebugLocation &location, const char *reason) GRPC_MUST_USE_RESULT
 
 RefCounted (const RefCounted &)=delete
 
RefCountedPtr< ChannelRefIfNonZero () GRPC_MUST_USE_RESULT
 
RefCountedPtr< ChannelRefIfNonZero (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
 
- Public Member Functions inherited from grpc_core::CppImplOf< Channel, grpc_channel >
grpc_channelc_ptr ()
 

Static Public Member Functions

static absl::StatusOr< RefCountedPtr< Channel > > Create (const char *target, ChannelArgs args, grpc_channel_stack_type channel_stack_type, grpc_transport *optional_transport)
 
static absl::StatusOr< RefCountedPtr< Channel > > CreateWithBuilder (ChannelStackBuilder *builder)
 
- Static Public Member Functions inherited from grpc_core::CppImplOf< Channel, grpc_channel >
static const ChannelFromC (const grpc_channel *c_type)
 
static ChannelFromC (grpc_channel *c_type)
 

Private Member Functions

 Channel (bool is_client, std::string target, ChannelArgs channel_args, grpc_compression_options compression_options, RefCountedPtr< grpc_channel_stack > channel_stack)
 

Private Attributes

MemoryAllocator allocator_
 
std::atomic< size_t > call_size_estimate_
 
const RefCountedPtr< grpc_channel_stackchannel_stack_
 
RefCountedPtr< channelz::ChannelNodechannelz_node_
 
const grpc_compression_options compression_options_
 
const bool is_client_
 
CallRegistrationTable registration_table_
 
std::string target_
 

Additional Inherited Members

- Public Types inherited from grpc_core::RefCounted< Channel >
using RefCountedChildType = Channel
 
- Protected Member Functions inherited from grpc_core::RefCounted< Channel >
 RefCounted (const char *trace=nullptr, intptr_t initial_refcount=1)
 
- Protected Member Functions inherited from grpc_core::CppImplOf< Channel, grpc_channel >
 ~CppImplOf ()=default
 

Detailed Description

Definition at line 108 of file src/core/lib/surface/channel.h.

Constructor & Destructor Documentation

◆ Channel()

grpc_core::Channel::Channel ( bool  is_client,
std::string  target,
ChannelArgs  channel_args,
grpc_compression_options  compression_options,
RefCountedPtr< grpc_channel_stack channel_stack 
)
private

Definition at line 65 of file channel.cc.

Member Function Documentation

◆ allocator()

MemoryAllocator* grpc_core::Channel::allocator ( )
inline

Definition at line 142 of file src/core/lib/surface/channel.h.

◆ CallSizeEstimate()

size_t grpc_core::Channel::CallSizeEstimate ( )
inline

Definition at line 127 of file src/core/lib/surface/channel.h.

◆ channel_stack()

grpc_channel_stack* grpc_core::Channel::channel_stack ( ) const
inline

Definition at line 119 of file src/core/lib/surface/channel.h.

◆ channelz_node()

channelz::ChannelNode* grpc_core::Channel::channelz_node ( ) const
inline

Definition at line 125 of file src/core/lib/surface/channel.h.

◆ compression_options()

grpc_compression_options grpc_core::Channel::compression_options ( ) const
inline

Definition at line 121 of file src/core/lib/surface/channel.h.

◆ Create()

absl::StatusOr< RefCountedPtr< Channel > > grpc_core::Channel::Create ( const char *  target,
ChannelArgs  args,
grpc_channel_stack_type  channel_stack_type,
grpc_transport optional_transport 
)
static

Definition at line 202 of file channel.cc.

◆ CreateWithBuilder()

absl::StatusOr< RefCountedPtr< Channel > > grpc_core::Channel::CreateWithBuilder ( ChannelStackBuilder builder)
static

Definition at line 106 of file channel.cc.

◆ is_client()

bool grpc_core::Channel::is_client ( ) const
inline

Definition at line 143 of file src/core/lib/surface/channel.h.

◆ RegisterCall()

RegisteredCall * grpc_core::Channel::RegisterCall ( const char *  method,
const char *  host 
)

Definition at line 378 of file channel.cc.

◆ target()

absl::string_view grpc_core::Channel::target ( ) const
inline

Definition at line 141 of file src/core/lib/surface/channel.h.

◆ TestOnlyRegisteredCalls()

int grpc_core::Channel::TestOnlyRegisteredCalls ( )
inline

Definition at line 146 of file src/core/lib/surface/channel.h.

◆ TestOnlyRegistrationAttempts()

int grpc_core::Channel::TestOnlyRegistrationAttempts ( )
inline

Definition at line 151 of file src/core/lib/surface/channel.h.

◆ UpdateCallSizeEstimate()

void grpc_core::Channel::UpdateCallSizeEstimate ( size_t  size)

Definition at line 236 of file channel.cc.

Member Data Documentation

◆ allocator_

MemoryAllocator grpc_core::Channel::allocator_
private

Definition at line 166 of file src/core/lib/surface/channel.h.

◆ call_size_estimate_

std::atomic<size_t> grpc_core::Channel::call_size_estimate_
private

Definition at line 163 of file src/core/lib/surface/channel.h.

◆ channel_stack_

const RefCountedPtr<grpc_channel_stack> grpc_core::Channel::channel_stack_
private

Definition at line 168 of file src/core/lib/surface/channel.h.

◆ channelz_node_

RefCountedPtr<channelz::ChannelNode> grpc_core::Channel::channelz_node_
private

Definition at line 165 of file src/core/lib/surface/channel.h.

◆ compression_options_

const grpc_compression_options grpc_core::Channel::compression_options_
private

Definition at line 162 of file src/core/lib/surface/channel.h.

◆ is_client_

const bool grpc_core::Channel::is_client_
private

Definition at line 161 of file src/core/lib/surface/channel.h.

◆ registration_table_

CallRegistrationTable grpc_core::Channel::registration_table_
private

Definition at line 164 of file src/core/lib/surface/channel.h.

◆ target_

std::string grpc_core::Channel::target_
private

Definition at line 167 of file src/core/lib/surface/channel.h.


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


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