Public Member Functions | Private Member Functions | Private Attributes | List of all members
grpc::experimental::DelegatingChannel Class Reference

#include <delegating_channel.h>

Inheritance diagram for grpc::experimental::DelegatingChannel:
Inheritance graph
[legend]

Public Member Functions

std::shared_ptr< grpc::ChannelInterfacedelegate_channel ()
 
 DelegatingChannel (std::shared_ptr< grpc::ChannelInterface > delegate_channel)
 
grpc_connectivity_state GetState (bool try_to_connect) override
 
 ~DelegatingChannel () override
 
- Public Member Functions inherited from grpc::ChannelInterface
template<typename T >
void NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, grpc::CompletionQueue *cq, void *tag)
 
template<typename T >
bool WaitForConnected (T deadline)
 Wait for this channel to be connected. More...
 
template<typename T >
bool WaitForStateChange (grpc_connectivity_state last_observed, T deadline)
 
virtual ~ChannelInterface ()
 

Private Member Functions

grpc::CompletionQueueCallbackCQ () final
 
internal::Call CreateCall (const internal::RpcMethod &method, ClientContext *context, grpc::CompletionQueue *cq) final
 
internal::Call CreateCallInternal (const internal::RpcMethod &method, ClientContext *context, grpc::CompletionQueue *cq, size_t interceptor_pos) final
 
void NotifyOnStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline, grpc::CompletionQueue *cq, void *tag) override
 
void PerformOpsOnCall (internal::CallOpSetInterface *ops, internal::Call *call) final
 
void * RegisterMethod (const char *method) final
 
bool WaitForStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline) override
 

Private Attributes

std::shared_ptr< grpc::ChannelInterfacedelegate_channel_
 

Detailed Description

Definition at line 31 of file delegating_channel.h.

Constructor & Destructor Documentation

◆ ~DelegatingChannel()

grpc::experimental::DelegatingChannel::~DelegatingChannel ( )
inlineoverride

Definition at line 33 of file delegating_channel.h.

◆ DelegatingChannel()

grpc::experimental::DelegatingChannel::DelegatingChannel ( std::shared_ptr< grpc::ChannelInterface delegate_channel)
inlineexplicit

Definition at line 35 of file delegating_channel.h.

Member Function Documentation

◆ CallbackCQ()

grpc::CompletionQueue* grpc::experimental::DelegatingChannel::CallbackCQ ( )
inlinefinalprivatevirtual

Reimplemented from grpc::ChannelInterface.

Definition at line 83 of file delegating_channel.h.

◆ CreateCall()

internal::Call grpc::experimental::DelegatingChannel::CreateCall ( const internal::RpcMethod method,
ClientContext context,
grpc::CompletionQueue cq 
)
inlinefinalprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 48 of file delegating_channel.h.

◆ CreateCallInternal()

internal::Call grpc::experimental::DelegatingChannel::CreateCallInternal ( const internal::RpcMethod method,
ClientContext context,
grpc::CompletionQueue cq,
size_t  interceptor_pos 
)
inlinefinalprivatevirtual

Reimplemented from grpc::ChannelInterface.

Definition at line 75 of file delegating_channel.h.

◆ delegate_channel()

std::shared_ptr<grpc::ChannelInterface> grpc::experimental::DelegatingChannel::delegate_channel ( )
inline

Definition at line 43 of file delegating_channel.h.

◆ GetState()

grpc_connectivity_state grpc::experimental::DelegatingChannel::GetState ( bool  try_to_connect)
inlineoverridevirtual

Get the current channel state. If the channel is in IDLE and try_to_connect is set to true, try to connect.

Implements grpc::ChannelInterface.

Definition at line 39 of file delegating_channel.h.

◆ NotifyOnStateChangeImpl()

void grpc::experimental::DelegatingChannel::NotifyOnStateChangeImpl ( grpc_connectivity_state  last_observed,
gpr_timespec  deadline,
grpc::CompletionQueue cq,
void *  tag 
)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 63 of file delegating_channel.h.

◆ PerformOpsOnCall()

void grpc::experimental::DelegatingChannel::PerformOpsOnCall ( internal::CallOpSetInterface ops,
internal::Call call 
)
inlinefinalprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 54 of file delegating_channel.h.

◆ RegisterMethod()

void* grpc::experimental::DelegatingChannel::RegisterMethod ( const char *  method)
inlinefinalprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 59 of file delegating_channel.h.

◆ WaitForStateChangeImpl()

bool grpc::experimental::DelegatingChannel::WaitForStateChangeImpl ( grpc_connectivity_state  last_observed,
gpr_timespec  deadline 
)
inlineoverrideprivatevirtual

Implements grpc::ChannelInterface.

Definition at line 70 of file delegating_channel.h.

Member Data Documentation

◆ delegate_channel_

std::shared_ptr<grpc::ChannelInterface> grpc::experimental::DelegatingChannel::delegate_channel_
private

Definition at line 87 of file delegating_channel.h.


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


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