19 #ifndef GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 20 #define GRPCPP_IMPL_CODEGEN_INTERCEPTED_CHANNEL_H 28 class InterceptorBatchMethodsImpl;
41 return channel_->
GetState(try_to_connect);
46 : channel_(channel), interceptor_pos_(pos) {}
50 return channel_->CreateCallInternal(method, context, cq, interceptor_pos_);
54 return channel_->PerformOpsOnCall(ops, call);
56 void* RegisterMethod(
const char* method)
override {
57 return channel_->RegisterMethod(method);
63 return channel_->NotifyOnStateChangeImpl(last_observed, deadline, cq, tag);
67 return channel_->WaitForStateChangeImpl(last_observed, deadline);
70 CompletionQueue* CallbackCQ()
override {
return channel_->CallbackCQ(); }
73 size_t interceptor_pos_;
80 #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:40
virtual grpc_connectivity_state GetState(bool try_to_connect)=0
Get the current channel state.
virtual ~InterceptedChannel()
Definition: intercepted_channel.h:36
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:174
Descriptor of an RPC method.
Definition: rpc_method.h:29
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:27
An InterceptedChannel is available to client Interceptors.
Definition: intercepted_channel.h:34
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:65
Definition: interceptor_common.h:36
A thin wrapper around grpc_completion_queue (see src/core/lib/surface/completion_queue.h).
Definition: completion_queue.h:95
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call_op_set_interface.h:34
Analogous to struct timespec.
Definition: gpr_types.h:47
Straightforward wrapping of the C call object.
Definition: call.h:36