Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
grpc::ClientUnaryReactor Class Reference

#include <client_callback.h>

Inheritance diagram for grpc::ClientUnaryReactor:
Inheritance graph
[legend]

Public Member Functions

void OnDone (const grpc::Status &) override
 
virtual void OnReadInitialMetadataDone (bool)
 
void StartCall ()
 
- Public Member Functions inherited from grpc::internal::ClientReactor
virtual void InternalScheduleOnDone (grpc::Status s)
 
virtual bool InternalTrailersOnly (const grpc_call *call) const
 
virtual ~ClientReactor ()=default
 

Private Member Functions

void BindCall (ClientCallbackUnary *call)
 

Private Attributes

ClientCallbackUnarycall_
 

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.

Definition at line 441 of file impl/codegen/client_callback.h.

Member Function Documentation

◆ BindCall()

void grpc::ClientUnaryReactor::BindCall ( ClientCallbackUnary call)
inlineprivate

Definition at line 449 of file impl/codegen/client_callback.h.

◆ 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.

Definition at line 444 of file impl/codegen/client_callback.h.

◆ OnReadInitialMetadataDone()

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

Definition at line 445 of file impl/codegen/client_callback.h.

◆ StartCall()

void grpc::ClientUnaryReactor::StartCall ( )
inline

Definition at line 443 of file impl/codegen/client_callback.h.

Friends And Related Function Documentation

◆ ClientCallbackUnary

friend class ClientCallbackUnary
friend

Definition at line 448 of file impl/codegen/client_callback.h.

Member Data Documentation

◆ call_

ClientCallbackUnary* grpc::ClientUnaryReactor::call_
private

Definition at line 450 of file impl/codegen/client_callback.h.


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


grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:30