GRPC C++  1.26.0
Public Member Functions
grpc_impl::Server::UnimplementedAsyncRequest Class Referencefinal

Use private inheritance rather than composition only to establish order of construction, since the public base class should be constructed after the elements belonging to the private base class are constructed. More...

Public Member Functions

 UnimplementedAsyncRequest (Server *server, grpc::ServerCompletionQueue *cq)
 
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...
 
grpc::ServerContextcontext ()
 
grpc::GenericServerAsyncReaderWriterstream ()
 
- Public Member Functions inherited from grpc::ServerInterface::GenericAsyncRequest
 GenericAsyncRequest (ServerInterface *server, GenericServerContext *context, internal::ServerAsyncStreamingInterface *stream, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag, bool delete_on_finalize)
 
- Public Member Functions inherited from grpc::ServerInterface::BaseAsyncRequest
 BaseAsyncRequest (ServerInterface *server, ::grpc_impl::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, ::grpc_impl::CompletionQueue *call_cq, ::grpc_impl::ServerCompletionQueue *notification_cq, void *tag, bool delete_on_finalize)
 
virtual ~BaseAsyncRequest ()
 
- Public Member Functions inherited from grpc::internal::CompletionQueueTag
virtual ~CompletionQueueTag ()
 

Additional Inherited Members

- Protected Attributes inherited from grpc::ServerInterface::BaseAsyncRequest
ServerInterface *const server_
 
::grpc_impl::ServerContext *const context_
 
internal::ServerAsyncStreamingInterface *const stream_
 
::grpc_impl::CompletionQueue *const call_cq_
 
::grpc_impl::ServerCompletionQueue *const notification_cq_
 
void *const tag_
 
const bool delete_on_finalize_
 
grpc_callcall_
 
internal::Call call_wrapper_
 
internal::InterceptorBatchMethodsImpl interceptor_methods_
 
bool done_intercepting_
 

Detailed Description

Use private inheritance rather than composition only to establish order of construction, since the public base class should be constructed after the elements belonging to the private base class are constructed.

This is not possible using true composition.

Constructor & Destructor Documentation

◆ UnimplementedAsyncRequest()

grpc_impl::Server::UnimplementedAsyncRequest::UnimplementedAsyncRequest ( Server server,
grpc::ServerCompletionQueue cq 
)
inline

Member Function Documentation

◆ context()

grpc::ServerContext* grpc_impl::Server::UnimplementedAsyncRequest::context ( )
inline

◆ FinalizeResult()

bool grpc_impl::Server::UnimplementedAsyncRequest::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::GenericAsyncRequest.

◆ stream()

grpc::GenericServerAsyncReaderWriter* grpc_impl::Server::UnimplementedAsyncRequest::stream ( )
inline

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