#include <client_callback.h>
Public Member Functions | |
void | OnDone (const grpc::Status &) override |
virtual void | OnReadInitialMetadataDone (bool) |
void | StartCall () |
![]() | |
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 | |
ClientCallbackUnary * | call_ |
Friends | |
class | ClientCallbackUnary |
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.
|
inlineprivate |
Definition at line 449 of file impl/codegen/client_callback.h.
|
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).
[in] | s | The status outcome of this RPC |
Implements grpc::internal::ClientReactor.
Definition at line 444 of file impl/codegen/client_callback.h.
|
inlinevirtual |
Definition at line 445 of file impl/codegen/client_callback.h.
|
inline |
Definition at line 443 of file impl/codegen/client_callback.h.
|
friend |
Definition at line 448 of file impl/codegen/client_callback.h.
|
private |
Definition at line 450 of file impl/codegen/client_callback.h.