GRPC C++
1.13.0-dev
|
Channels represent a connection to an endpoint. Created by CreateChannel. More...
#include <channel.h>
Public Member Functions | |
~Channel () | |
grpc_connectivity_state | GetState (bool try_to_connect) override |
Get the current channel state. More... | |
grpc::string | GetLoadBalancingPolicyName () const |
Returns the LB policy name, or the empty string if not yet available. More... | |
grpc::string | GetServiceConfigJSON () const |
Returns the service config in JSON form, or the empty string if not available. More... | |
![]() | |
virtual | ~ChannelInterface () |
template<typename T > | |
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. 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... | |
![]() | |
virtual | ~CallHook () |
Friends | |
template<class InputMessage , class OutputMessage > | |
class | internal::BlockingUnaryCallImpl |
std::shared_ptr< Channel > | CreateChannelInternal (const grpc::string &host, grpc_channel *c_channel) |
Channels represent a connection to an endpoint. Created by CreateChannel.
grpc::Channel::~Channel | ( | ) |
grpc::string grpc::Channel::GetLoadBalancingPolicyName | ( | ) | const |
Returns the LB policy name, or the empty string if not yet available.
grpc::string grpc::Channel::GetServiceConfigJSON | ( | ) | const |
Returns the service config in JSON form, or the empty string if not available.
|
overridevirtual |
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.
|
friend |
|
friend |