RegisteredAsyncRequest is not part of the C++ API. More...
#include <server_interface.h>
Public Member Functions | |
bool | FinalizeResult (void **tag, bool *status) override |
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) | |
![]() | |
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 () |
Protected Member Functions | |
void | IssueRequest (void *registered_method, grpc_byte_buffer **payload, grpc::ServerCompletionQueue *notification_cq) |
Protected Attributes | |
const char * | name_ |
const internal::RpcMethod::RpcType | type_ |
![]() | |
grpc_call * | call_ |
grpc::CompletionQueue *const | call_cq_ |
internal::Call | call_wrapper_ |
grpc::ServerContext *const | context_ |
const bool | delete_on_finalize_ |
bool | done_intercepting_ |
internal::InterceptorBatchMethodsImpl | interceptor_methods_ |
grpc::ServerCompletionQueue *const | notification_cq_ |
ServerInterface *const | server_ |
internal::ServerAsyncStreamingInterface *const | stream_ |
void *const | tag_ |
RegisteredAsyncRequest is not part of the C++ API.
Definition at line 196 of file grpcpp/impl/codegen/server_interface.h.
grpc::ServerInterface::RegisteredAsyncRequest::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 | ||
) |
Definition at line 228 of file server_cc.cc.
|
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:
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 >.
Definition at line 206 of file grpcpp/impl/codegen/server_interface.h.
|
protected |
Definition at line 238 of file server_cc.cc.
|
protected |
Definition at line 221 of file grpcpp/impl/codegen/server_interface.h.
|
protected |
Definition at line 222 of file grpcpp/impl/codegen/server_interface.h.