GRPC C++  1.30.0
Public Member Functions | Friends
grpc::internal::InterceptedChannel Class Reference

An InterceptedChannel is available to client Interceptors. More...

#include <intercepted_channel.h>

Public Member Functions

virtual ~InterceptedChannel ()
 
grpc_connectivity_state GetState (bool try_to_connect) override
 Get the current channel state. More...
 
- Public Member Functions inherited from grpc::ChannelInterface
virtual ~ChannelInterface ()
 
template<typename T >
void NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, ::grpc_impl::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...
 

Friends

class InterceptorBatchMethodsImpl
 

Detailed Description

An InterceptedChannel is available to client Interceptors.

An InterceptedChannel is unique to an interceptor, and when an RPC is started on this channel, only those interceptors that come after this interceptor see the RPC.

Constructor & Destructor Documentation

◆ ~InterceptedChannel()

virtual grpc::internal::InterceptedChannel::~InterceptedChannel ( )
inlinevirtual

Member Function Documentation

◆ GetState()

grpc_connectivity_state grpc::internal::InterceptedChannel::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.

Friends And Related Function Documentation

◆ InterceptorBatchMethodsImpl

friend class InterceptorBatchMethodsImpl
friend

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