GRPC C++  1.66.0
Data Structures | Public Member Functions
grpc::internal::CallbackUnaryHandler< RequestType, ResponseType > Class Template Reference

#include <server_callback_handlers.h>

Public Member Functions

 CallbackUnaryHandler (std::function< ServerUnaryReactor *(grpc::CallbackServerContext *, const RequestType *, ResponseType *)> get_reactor)
 
void SetMessageAllocator (MessageAllocator< RequestType, ResponseType > *allocator)
 
void RunHandler (const HandlerParameter &param) final
 
void * Deserialize (grpc_call *call, grpc_byte_buffer *req, grpc::Status *status, void **handler_data) final
 
- Public Member Functions inherited from grpc::internal::MethodHandler
virtual ~MethodHandler ()
 

Constructor & Destructor Documentation

◆ CallbackUnaryHandler()

template<class RequestType , class ResponseType >
grpc::internal::CallbackUnaryHandler< RequestType, ResponseType >::CallbackUnaryHandler ( std::function< ServerUnaryReactor *(grpc::CallbackServerContext *, const RequestType *, ResponseType *)>  get_reactor)
inlineexplicit

Member Function Documentation

◆ Deserialize()

template<class RequestType , class ResponseType >
void* grpc::internal::CallbackUnaryHandler< RequestType, ResponseType >::Deserialize ( grpc_call call,
grpc_byte_buffer req,
grpc::Status status,
void **  handler_data 
)
inlinefinalvirtual

Reimplemented from grpc::internal::MethodHandler.

◆ RunHandler()

template<class RequestType , class ResponseType >
void grpc::internal::CallbackUnaryHandler< RequestType, ResponseType >::RunHandler ( const HandlerParameter param)
inlinefinalvirtual

Invoke SetupReactor as the last part of the handler

Implements grpc::internal::MethodHandler.

◆ SetMessageAllocator()

template<class RequestType , class ResponseType >
void grpc::internal::CallbackUnaryHandler< RequestType, ResponseType >::SetMessageAllocator ( MessageAllocator< RequestType, ResponseType > *  allocator)
inline

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