GRPC C++  1.43.1
Public Member Functions | Friends
grpc::ClientUnaryReactor Class Reference

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

#include <client_callback.h>

Public Member Functions

void StartCall ()
 
void OnDone (const ::grpc::Status &) override
 Called by the library when all operations associated with this RPC have completed and all Holds have been removed. More...
 
virtual void OnReadInitialMetadataDone (bool)
 
- Public Member Functions inherited from grpc::internal::ClientReactor
virtual ~ClientReactor ()=default
 
virtual void InternalScheduleOnDone (::grpc::Status s)
 InternalScheduleOnDone is not part of the API and is not meant to be overridden. More...
 
virtual bool InternalTrailersOnly (const grpc_call *call) const
 InternalTrailersOnly is not part of the API and is not meant to be overridden. More...
 

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.

Member Function Documentation

◆ OnDone()

void grpc::ClientUnaryReactor::OnDone ( const ::grpc::Status )
inlineoverridevirtual

Called by the library when all operations associated with this RPC have completed and all Holds have been removed.

OnDone provides the RPC status outcome for both successful and failed RPCs. If it is never called on an RPC, it indicates an application-level problem (like failure to remove a hold).

Parameters
[in]sThe status outcome of this RPC

Implements grpc::internal::ClientReactor.

◆ OnReadInitialMetadataDone()

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

◆ StartCall()

void grpc::ClientUnaryReactor::StartCall ( )
inline

Friends And Related Function Documentation

◆ ClientCallbackUnary

friend class ClientCallbackUnary
friend

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