34 #ifndef GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H 35 #define GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H 45 class CallOpSetInterface;
46 class CompletionQueue;
52 template <
class W,
class R>
58 template <
class W,
class R>
77 NotifyOnStateChangeImpl(last_observed, deadline_tp.
raw_time(), cq, tag);
85 return WaitForStateChangeImpl(last_observed, deadline_tp.
raw_time());
100 friend class ::grpc::ClientReader;
102 friend class ::grpc::ClientWriter;
103 template <
class W,
class R>
104 friend class ::grpc::ClientReaderWriter;
106 friend class ::grpc::ClientAsyncReader;
108 friend class ::grpc::ClientAsyncWriter;
109 template <
class W,
class R>
110 friend class ::grpc::ClientAsyncReaderWriter;
112 friend class ::grpc::ClientAsyncResponseReader;
113 template <
class InputMessage,
class OutputMessage>
117 const InputMessage& request,
118 OutputMessage* result);
119 friend class ::grpc::RpcMethod;
123 virtual void* RegisterMethod(
const char* method) = 0;
133 #endif // GRPCXX_IMPL_CODEGEN_CHANNEL_INTERFACE_H Definition: async_stream.h:249
Definition: channel_interface.h:49
An abstract collection of call ops, used to generate the grpc_call_op structure to pass down to the l...
Definition: call.h:563
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:74
virtual grpc_connectivity_state GetState(bool try_to_connect)=0
Get the current channel state.
gpr_timespec raw_time()
Definition: time.h:57
Definition: async_unary_call.h:59
Definition: client_context.h:154
friend Status BlockingUnaryCall(ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result)
Definition: client_unary_call.h:52
grpc_connectivity_state
Connectivity state of a channel.
Definition: connectivity_state.h:42
Codegen interface for grpc::Channel.
Definition: channel_interface.h:64
Definition: async_stream.h:177
channel is ready for work
Definition: connectivity_state.h:48
A thin wrapper around grpc_completion_queue (see / src/core/surface/completion_queue.h).
Definition: completion_queue.h:97
Definition: rpc_method.h:43
virtual ~ChannelInterface()
Definition: channel_interface.h:66
bool WaitForStateChange(grpc_connectivity_state last_observed, T deadline)
Blocking wait for channel state change or deadline expiration.
Definition: channel_interface.h:83
Did it work? If it didn't, why?
Definition: status.h:45
Definition: channel_interface.h:53
Definition: async_stream.h:111
bool WaitForConnected(T deadline)
Wait for this channel to be connected.
Definition: channel_interface.h:90
Definition: channel_interface.h:51