GRPC C++  1.0.0
Public Member Functions | Friends
grpc::ChannelInterface Class Referenceabstract

Codegen interface for grpc::Channel. More...

#include <channel_interface.h>

Public Member Functions

virtual ~ChannelInterface ()
 
virtual grpc_connectivity_state GetState (bool try_to_connect)=0
 Get the current channel state. More...
 
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...
 

Friends

template<class R >
class ::grpc::ClientReader
 
template<class W >
class ::grpc::ClientWriter
 
template<class W , class R >
class ::grpc::ClientReaderWriter
 
template<class R >
class ::grpc::ClientAsyncReader
 
template<class W >
class ::grpc::ClientAsyncWriter
 
template<class W , class R >
class ::grpc::ClientAsyncReaderWriter
 
template<class R >
class ::grpc::ClientAsyncResponseReader
 
class ::grpc::RpcMethod
 
template<class InputMessage , class OutputMessage >
Status BlockingUnaryCall (ChannelInterface *channel, const RpcMethod &method, ClientContext *context, const InputMessage &request, OutputMessage *result)
 

Detailed Description

Codegen interface for grpc::Channel.

Constructor & Destructor Documentation

virtual grpc::ChannelInterface::~ChannelInterface ( )
inlinevirtual

Member Function Documentation

virtual grpc_connectivity_state grpc::ChannelInterface::GetState ( bool  try_to_connect)
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.

template<typename T >
void grpc::ChannelInterface::NotifyOnStateChange ( grpc_connectivity_state  last_observed,
deadline,
CompletionQueue cq,
void *  tag 
)
inline

Return the tag on cq when the channel state is changed or deadline expires.

GetState needs to called to get the current state.

template<typename T >
bool grpc::ChannelInterface::WaitForConnected ( deadline)
inline

Wait for this channel to be connected.

template<typename T >
bool grpc::ChannelInterface::WaitForStateChange ( grpc_connectivity_state  last_observed,
deadline 
)
inline

Blocking wait for channel state change or deadline expiration.

GetState needs to called to get the current state.

Friends And Related Function Documentation

template<class R >
friend class ::grpc::ClientAsyncReader
friend
template<class W , class R >
friend class ::grpc::ClientAsyncReaderWriter
friend
template<class R >
friend class ::grpc::ClientAsyncResponseReader
friend
template<class W >
friend class ::grpc::ClientAsyncWriter
friend
template<class R >
friend class ::grpc::ClientReader
friend
template<class W , class R >
friend class ::grpc::ClientReaderWriter
friend
template<class W >
friend class ::grpc::ClientWriter
friend
friend class ::grpc::RpcMethod
friend
template<class InputMessage , class OutputMessage >
Status BlockingUnaryCall ( ChannelInterface channel,
const RpcMethod method,
ClientContext context,
const InputMessage &  request,
OutputMessage *  result 
)
friend

The documentation for this class was generated from the following file: