19 #ifndef GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 20 #define GRPCPP_IMPL_CODEGEN_CHANNEL_INTERFACE_H 29 class ChannelInterface;
31 class CompletionQueue;
37 template <
class W,
class R>
42 class CallOpSetInterface;
44 template <
class InputMessage,
class OutputMessage>
46 template <
class InputMessage,
class OutputMessage>
52 template <
class W,
class R>
73 NotifyOnStateChangeImpl(last_observed, deadline_tp.
raw_time(), cq, tag);
81 return WaitForStateChangeImpl(last_observed, deadline_tp.
raw_time());
89 if (!WaitForStateChange(state, deadline))
return false;
96 friend class ::grpc::ClientReader;
98 friend class ::grpc::ClientWriter;
99 template <
class W,
class R>
100 friend class ::grpc::ClientReaderWriter;
102 friend class ::grpc::internal::ClientAsyncReaderFactory;
104 friend class ::grpc::internal::ClientAsyncWriterFactory;
105 template <
class W,
class R>
106 friend class ::grpc::internal::ClientAsyncReaderWriterFactory;
108 friend class ::grpc::internal::ClientAsyncResponseReaderFactory;
109 template <
class InputMessage,
class OutputMessage>
110 friend class ::grpc::internal::BlockingUnaryCallImpl;
111 template <
class InputMessage,
class OutputMessage>
112 friend class ::grpc::internal::CallbackUnaryCallImpl;
113 friend class ::grpc::internal::RpcMethod;
114 friend class ::grpc::internal::InterceptedChannel;
120 virtual void* RegisterMethod(
const char* method) = 0;
137 size_t interceptor_pos) {
153 #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:34
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:70
Definition: channel_interface.h:47
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:165
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
An Alarm posts the user provided tag to its associated completion queue upon expiry or cancellation...
Definition: alarm.h:33
Codegen interface for grpc::Channel.
Definition: channel_interface.h:60
channel is ready for work
Definition: connectivity_state.h:33
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:62
Definition: channel_interface.h:45
bool WaitForStateChange(grpc_connectivity_state last_observed, T deadline)
Blocking wait for channel state change or deadline expiration.
Definition: channel_interface.h:79
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:38
bool WaitForConnected(T deadline)
Wait for this channel to be connected.
Definition: channel_interface.h:86
Synchronous (blocking) client-side API for doing client-streaming RPCs, where the outgoing message st...
Definition: channel_interface.h:36
Straightforward wrapping of the C call object.
Definition: call.h:36