GRPC C++
1.30.0
|
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 |
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.
|
inlinevirtual |
|
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.
|
friend |