Codegen interface for grpc::Channel. More...
#include <channel_interface.h>
Public Member Functions | |
virtual grpc_connectivity_state | GetState (bool try_to_connect)=0 |
template<typename T > | |
void | NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, grpc::CompletionQueue *cq, void *tag) |
template<typename T > | |
bool | WaitForConnected (T deadline) |
Wait for this channel to be connected. More... | |
template<typename T > | |
bool | WaitForStateChange (grpc_connectivity_state last_observed, T deadline) |
virtual | ~ChannelInterface () |
Private Member Functions | |
virtual grpc::CompletionQueue * | CallbackCQ () |
virtual internal::Call | CreateCall (const internal::RpcMethod &method, grpc::ClientContext *context, grpc::CompletionQueue *cq)=0 |
virtual internal::Call | CreateCallInternal (const internal::RpcMethod &, grpc::ClientContext *, grpc::CompletionQueue *, size_t) |
virtual void | NotifyOnStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline, grpc::CompletionQueue *cq, void *tag)=0 |
virtual void | PerformOpsOnCall (internal::CallOpSetInterface *ops, internal::Call *call)=0 |
virtual void * | RegisterMethod (const char *method)=0 |
virtual bool | WaitForStateChangeImpl (grpc_connectivity_state last_observed, gpr_timespec deadline)=0 |
Codegen interface for grpc::Channel.
Definition at line 73 of file grpcpp/impl/codegen/channel_interface.h.
|
inlinevirtual |
Definition at line 75 of file grpcpp/impl/codegen/channel_interface.h.
|
inlineprivatevirtual |
Reimplemented in grpc::Channel, grpc::internal::InterceptedChannel, and grpc::experimental::DelegatingChannel.
Definition at line 168 of file grpcpp/impl/codegen/channel_interface.h.
|
privatepure virtual |
Implemented in grpc::internal::InterceptedChannel, grpc::experimental::DelegatingChannel, and grpc::Channel.
|
inlineprivatevirtual |
Reimplemented in grpc::experimental::DelegatingChannel, and grpc::Channel.
Definition at line 155 of file grpcpp/impl/codegen/channel_interface.h.
|
pure virtual |
Get the current channel state. If the channel is in IDLE and try_to_connect is set to true, try to connect.
Implemented in grpc::Channel, grpc::internal::InterceptedChannel, and grpc::experimental::DelegatingChannel.
|
inline |
Return the tag on cq when the channel state is changed or deadline expires. GetState needs to called to get the current state.
Definition at line 83 of file grpcpp/impl/codegen/channel_interface.h.
|
privatepure virtual |
Implemented in grpc::Channel, grpc::experimental::DelegatingChannel, and grpc::internal::InterceptedChannel.
|
privatepure virtual |
Implemented in grpc::experimental::DelegatingChannel, grpc::Channel, and grpc::internal::InterceptedChannel.
|
privatepure virtual |
Implemented in grpc::Channel, grpc::internal::InterceptedChannel, and grpc::experimental::DelegatingChannel.
Wait for this channel to be connected.
Definition at line 99 of file grpcpp/impl/codegen/channel_interface.h.
|
inline |
Blocking wait for channel state change or deadline expiration. GetState needs to called to get the current state.
Definition at line 92 of file grpcpp/impl/codegen/channel_interface.h.
|
privatepure virtual |
Implemented in grpc::Channel, grpc::experimental::DelegatingChannel, and grpc::internal::InterceptedChannel.
|
friend |
Definition at line 109 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 113 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 111 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 133 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 129 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 131 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 115 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 119 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 120 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 117 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 124 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 122 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 127 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 126 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 134 of file grpcpp/impl/codegen/channel_interface.h.
|
friend |
Definition at line 132 of file grpcpp/impl/codegen/channel_interface.h.