19 #ifndef GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 20 #define GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 28 class ChannelInterface;
30 class CompletionQueue;
36 template <
class W,
class R>
41 class CallOpSetInterface;
43 template <
class InputMessage,
class OutputMessage>
45 template <
class InputMessage,
class OutputMessage>
51 template <
class W,
class R>
55 template <
class W,
class R>
78 NotifyOnStateChangeImpl(last_observed, deadline_tp.
raw_time(), cq, tag);
86 return WaitForStateChangeImpl(last_observed, deadline_tp.
raw_time());
94 if (!WaitForStateChange(state, deadline))
return false;
101 friend class ::grpc::ClientReader;
103 friend class ::grpc::ClientWriter;
104 template <
class W,
class R>
105 friend class ::grpc::ClientReaderWriter;
107 friend class ::grpc::internal::ClientAsyncReaderFactory;
109 friend class ::grpc::internal::ClientAsyncWriterFactory;
110 template <
class W,
class R>
111 friend class ::grpc::internal::ClientAsyncReaderWriterFactory;
113 friend class ::grpc::internal::ClientAsyncResponseReaderFactory;
114 template <
class W,
class R>
115 friend class ::grpc::internal::ClientCallbackReaderWriterFactory;
117 friend class ::grpc::internal::ClientCallbackReaderFactory;
119 friend class ::grpc::internal::ClientCallbackWriterFactory;
120 template <
class InputMessage,
class OutputMessage>
121 friend class ::grpc::internal::BlockingUnaryCallImpl;
122 template <
class InputMessage,
class OutputMessage>
123 friend class ::grpc::internal::CallbackUnaryCallImpl;
124 friend class ::grpc::internal::RpcMethod;
125 friend class ::grpc::internal::InterceptedChannel;
131 virtual void* RegisterMethod(
const char* method) = 0;
148 size_t interceptor_pos) {
164 #endif // GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H Synchronous (blocking) client-side API for doing server-streaming RPCs, where the stream of messages ...
Definition: channel_interface.h:33
Definition: channel_interface.h:56
Definition: async_unary_call.h:74
void NotifyOnStateChange(grpc_connectivity_state last_observed, T deadline, CompletionQueue *cq, void *tag)
Return the tag on cq when the channel state is changed or deadline expires.
Definition: channel_interface.h:75
Definition: channel_interface.h:60
Definition: channel_interface.h:46
gpr_timespec raw_time()
Definition: time.h:43
If you are trying to use CompletionQueue::AsyncNext with a time class that isn't either gpr_timespec ...
Definition: time.h:40
A ClientContext allows the person implementing a service client to:
Definition: client_context.h:174
Definition: async_stream.h:317
Definition: async_stream.h:173
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
Definition: async_stream.h:487
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
channel is ready for work
Definition: connectivity_state.h:33
Definition: channel_interface.h:58
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
virtual ~ChannelInterface()
Definition: channel_interface.h:67
Definition: channel_interface.h:44
bool WaitForStateChange(grpc_connectivity_state last_observed, T deadline)
Blocking wait for channel state change or deadline expiration.
Definition: channel_interface.h:84
Analogous to struct timespec.
Definition: gpr_types.h:47
Synchronous (blocking) client-side API for bi-directional streaming RPCs, where the outgoing message ...
Definition: channel_interface.h:37
bool WaitForConnected(T deadline)
Wait for this channel to be connected.
Definition: channel_interface.h:91
Synchronous (blocking) client-side API for doing client-streaming RPCs, where the outgoing message st...
Definition: channel_interface.h:35
Straightforward wrapping of the C call object.
Definition: call.h:36