GRPC C++
1.30.0
|
#include <delegating_channel.h>
Public Member Functions | |
virtual | ~DelegatingChannel () |
DelegatingChannel (std::shared_ptr<::grpc::ChannelInterface > delegate_channel) | |
grpc_connectivity_state | GetState (bool try_to_connect) override |
Get the current channel state. More... | |
std::shared_ptr<::grpc::ChannelInterface > | delegate_channel () |
Public Member Functions inherited from grpc::ChannelInterface | |
virtual | ~ChannelInterface () |
template<typename T > | |
void | NotifyOnStateChange (grpc_connectivity_state last_observed, T deadline, ::grpc_impl::CompletionQueue *cq, void *tag) |
Return the tag on cq when the channel state is changed or deadline expires. More... | |
template<typename T > | |
bool | WaitForStateChange (grpc_connectivity_state last_observed, T deadline) |
Blocking wait for channel state change or deadline expiration. More... | |
template<typename T > | |
bool | WaitForConnected (T deadline) |
Wait for this channel to be connected. More... | |
|
inlinevirtual |
|
inline |
|
inline |
|
inlineoverridevirtual |
Get the current channel state.
If the channel is in IDLE and try_to_connect is set to true, try to connect.
Implements grpc::ChannelInterface.