GRPC C++  1.30.0
Public Member Functions | Friends
grpc_impl::ClientUnaryReactor Class Reference

ClientUnaryReactor is a reactor-style interface for a unary RPC. More...

#include <client_callback_impl.h>

Public Member Functions

virtual ~ClientUnaryReactor ()
 
void StartCall ()
 
virtual void OnDone (const ::grpc::Status &)
 
virtual void OnReadInitialMetadataDone (bool)
 

Friends

class ClientCallbackUnary
 

Detailed Description

ClientUnaryReactor is a reactor-style interface for a unary RPC.

This is not a common way of invoking a unary RPC. In practice, this option should be used only if the unary RPC wants to receive initial metadata without waiting for the response to complete. Most deployments of RPC systems do not use this option, but it is needed for generality. All public methods behave as in ClientBidiReactor. StartCall is included for consistency with the other reactor flavors: even though there are no StartRead or StartWrite operations to queue before the call (that is part of the unary call itself) and there is no reactor object being created as a result of this call, we keep a consistent 2-phase initiation API among all the reactor flavors.

Constructor & Destructor Documentation

◆ ~ClientUnaryReactor()

virtual grpc_impl::ClientUnaryReactor::~ClientUnaryReactor ( )
inlinevirtual

Member Function Documentation

◆ OnDone()

virtual void grpc_impl::ClientUnaryReactor::OnDone ( const ::grpc::Status )
inlinevirtual

◆ OnReadInitialMetadataDone()

virtual void grpc_impl::ClientUnaryReactor::OnReadInitialMetadataDone ( bool  )
inlinevirtual

◆ StartCall()

void grpc_impl::ClientUnaryReactor::StartCall ( )
inline

Friends And Related Function Documentation

◆ ClientCallbackUnary

friend class ClientCallbackUnary
friend

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