Public Member Functions | Private Attributes | List of all members
grpc::ServerInterface::GenericAsyncRequest Class Reference

#include <server_interface.h>

Inheritance diagram for grpc::ServerInterface::GenericAsyncRequest:
Inheritance graph
[legend]

Public Member Functions

bool FinalizeResult (void **tag, bool *status) override
 
 GenericAsyncRequest (ServerInterface *server, GenericServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag, bool delete_on_finalize)
 
- Public Member Functions inherited from grpc::ServerInterface::BaseAsyncRequest
 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
 
- Public Member Functions inherited from grpc::internal::CompletionQueueTag
virtual ~CompletionQueueTag ()
 

Private Attributes

grpc_call_details call_details_
 

Additional Inherited Members

- Protected Attributes inherited from grpc::ServerInterface::BaseAsyncRequest
grpc_callcall_
 
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_
 

Detailed Description

Definition at line 300 of file grpcpp/impl/codegen/server_interface.h.

Constructor & Destructor Documentation

◆ GenericAsyncRequest()

grpc::ServerInterface::GenericAsyncRequest::GenericAsyncRequest ( ServerInterface server,
GenericServerContext context,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag,
bool  delete_on_finalize 
)

Definition at line 250 of file server_cc.cc.

Member Function Documentation

◆ FinalizeResult()

bool grpc::ServerInterface::GenericAsyncRequest::FinalizeResult ( void **  tag,
bool status 
)
overridevirtual

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:

  1. For the sync API - before returning from Pluck
  2. For the CQ-based async API - before returning from Next
  3. 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.

Definition at line 267 of file server_cc.cc.

Member Data Documentation

◆ call_details_

grpc_call_details grpc::ServerInterface::GenericAsyncRequest::call_details_
private

Definition at line 311 of file grpcpp/impl/codegen/server_interface.h.


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


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