#include <intercepted_channel.h>
Public Member Functions | |
grpc_connectivity_state | GetState (bool try_to_connect) override |
~InterceptedChannel () override | |
![]() | |
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::CompletionQueue * | CallbackCQ () override |
Call | CreateCall (const RpcMethod &method, grpc::ClientContext *context, grpc::CompletionQueue *cq) override |
InterceptedChannel (ChannelInterface *channel, size_t pos) | |
void | NotifyOnStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline, grpc::CompletionQueue *cq, void *tag) override |
void | PerformOpsOnCall (CallOpSetInterface *ops, Call *call) override |
void * | RegisterMethod (const char *method) override |
bool | WaitForStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline) override |
Private Attributes | |
ChannelInterface * | channel_ |
size_t | interceptor_pos_ |
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.
Definition at line 37 of file intercepted_channel.h.
|
inlineoverride |
Definition at line 39 of file intercepted_channel.h.
|
inlineprivate |
Definition at line 48 of file intercepted_channel.h.
|
inlineoverrideprivatevirtual |
Reimplemented from grpc::ChannelInterface.
Definition at line 73 of file intercepted_channel.h.
|
inlineoverrideprivatevirtual |
Implements grpc::ChannelInterface.
Definition at line 51 of file intercepted_channel.h.
|
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 43 of file intercepted_channel.h.
|
inlineoverrideprivatevirtual |
Implements grpc::ChannelInterface.
Definition at line 63 of file intercepted_channel.h.
|
inlineoverrideprivatevirtual |
Implements grpc::ChannelInterface.
Definition at line 56 of file intercepted_channel.h.
|
inlineoverrideprivatevirtual |
Implements grpc::ChannelInterface.
Definition at line 59 of file intercepted_channel.h.
|
inlineoverrideprivatevirtual |
Implements grpc::ChannelInterface.
Definition at line 68 of file intercepted_channel.h.
|
friend |
Definition at line 80 of file intercepted_channel.h.
|
private |
Definition at line 77 of file intercepted_channel.h.
|
private |
Definition at line 78 of file intercepted_channel.h.