GRPC C++  1.66.0
Public Member Functions
grpc::experimental::DelegatingChannel Class Reference

#include <delegating_channel.h>

Public Member Functions

 ~DelegatingChannel () override
 
 DelegatingChannel (std::shared_ptr< grpc::ChannelInterface > delegate_channel)
 
grpc_connectivity_state GetState (bool try_to_connect) override
 Get the current channel state. More...
 
std::shared_ptr< grpc::ChannelInterfacedelegate_channel ()
 
- Public Member Functions inherited from grpc::ChannelInterface
virtual ~ChannelInterface ()
 
template<typename T >
void NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, grpc::CompletionQueue *cq, void *tag)
 Return the tag on cq when the channel state is changed or deadline expires. More...
 
template<typename T >
bool WaitForStateChange (grpc_connectivity_state last_observed, T deadline)
 Blocking wait for channel state change or deadline expiration. More...
 
template<typename T >
bool WaitForConnected (T deadline)
 Wait for this channel to be connected. More...
 

Constructor & Destructor Documentation

◆ ~DelegatingChannel()

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

◆ DelegatingChannel()

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

Member Function Documentation

◆ delegate_channel()

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

◆ 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.


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