19 #ifndef GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 20 #define GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 32 class InterceptorBatchMethodsImpl;
45 return channel_->
GetState(try_to_connect);
50 : channel_(channel), interceptor_pos_(pos) {}
54 return channel_->CreateCallInternal(method, context, cq, interceptor_pos_);
57 void PerformOpsOnCall(CallOpSetInterface* ops, Call* call)
override {
58 return channel_->PerformOpsOnCall(ops, call);
60 void* RegisterMethod(
const char* method)
override {
61 return channel_->RegisterMethod(method);
68 return channel_->NotifyOnStateChangeImpl(last_observed, deadline, cq, tag);
72 return channel_->WaitForStateChangeImpl(last_observed, deadline);
76 return channel_->CallbackCQ();
79 ChannelInterface* channel_;
80 size_t interceptor_pos_;
87 #endif // GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H grpc_connectivity_state GetState(bool try_to_connect) override
Get the current channel state.
Definition: intercepted_channel.h:44
virtual grpc_connectivity_state GetState(bool try_to_connect)=0
Get the current channel state.
virtual ~InterceptedChannel()
Definition: intercepted_channel.h:40
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:27
An InterceptedChannel is available to client Interceptors.
Definition: intercepted_channel.h:38
::grpc_impl::CompletionQueue CompletionQueue
Definition: completion_queue.h:26
This header provides an object that reads bytes directly from a grpc::ByteBuffer, via the ZeroCopyInp...
Definition: alarm.h:24
Codegen interface for grpc::Channel.
Definition: channel_interface.h:74
Definition: interceptor_common.h:36
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm_impl.h:33
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h).
Definition: completion_queue_impl.h:100
A ClientContext allows the person implementing a service client to:
Definition: client_context_impl.h:184
Analogous to struct timespec.
Definition: gpr_types.h:47