RegisteredAsyncRequest is not part of the C++ API.
More...
#include <server_interface.h>
|
| RegisteredAsyncRequest (ServerInterface *server, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, const char *name, internal::RpcMethod::RpcType type) |
|
bool | FinalizeResult (void **tag, bool *status) override |
| FinalizeResult must be called before informing user code that the operation bound to the underlying core completion queue tag has completed. More...
|
|
| BaseAsyncRequest (ServerInterface *server, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, bool delete_on_finalize) |
|
| ~BaseAsyncRequest () override |
|
virtual | ~CompletionQueueTag () |
|
RegisteredAsyncRequest is not part of the C++ API.
◆ RegisteredAsyncRequest()
◆ FinalizeResult()
bool grpc::ServerInterface::RegisteredAsyncRequest::FinalizeResult |
( |
void ** |
tag, |
|
|
bool * |
status |
|
) |
| |
|
inlineoverridevirtual |
FinalizeResult must be called before informing user code that the operation bound to the underlying core completion queue tag has completed.
In practice, this means:
- For the sync API - before returning from Pluck
- For the CQ-based async API - before returning from Next
- For the callback-based API - before invoking the user callback
This is the method that translates from core-side tag/status to C++ API-observable tag/status.
The return value is the status of the operation (returning status is the general behavior of this function). If this function returns false, the tag is dropped and not returned from the completion queue: this concept is for events that are observed at core but not requested by the user application (e.g., server shutdown, for server unimplemented method responses, or for cases where a server-side RPC doesn't have a completion notification registered using AsyncNotifyWhenDone)
Reimplemented from grpc::ServerInterface::BaseAsyncRequest.
Reimplemented in grpc::ServerInterface::PayloadAsyncRequest< Message >.
◆ IssueRequest()
◆ name_
const char* grpc::ServerInterface::RegisteredAsyncRequest::name_ |
|
protected |
◆ type_
The documentation for this class was generated from the following file: