GRPC C++  1.66.0
Public Member Functions
grpc::internal::RpcMethodHandler< ServiceType, RequestType, ResponseType, BaseRequestType, BaseResponseType > Class Template Reference

A wrapper class of an application provided rpc method handler. More...

#include <completion_queue.h>

Public Member Functions

 RpcMethodHandler (std::function< grpc::Status(ServiceType *, grpc::ServerContext *, const RequestType *, ResponseType *)> func, ServiceType *service)
 
void RunHandler (const HandlerParameter &param) final
 
void * Deserialize (grpc_call *call, grpc_byte_buffer *req, grpc::Status *status, void **) final
 

Detailed Description

template<class ServiceType, class RequestType, class ResponseType, class BaseRequestType = RequestType, class BaseResponseType = ResponseType>
class grpc::internal::RpcMethodHandler< ServiceType, RequestType, ResponseType, BaseRequestType, BaseResponseType >

A wrapper class of an application provided rpc method handler.

Constructor & Destructor Documentation

◆ RpcMethodHandler()

template<class ServiceType , class RequestType , class ResponseType , class BaseRequestType = RequestType, class BaseResponseType = ResponseType>
grpc::internal::RpcMethodHandler< ServiceType, RequestType, ResponseType, BaseRequestType, BaseResponseType >::RpcMethodHandler ( std::function< grpc::Status(ServiceType *, grpc::ServerContext *, const RequestType *, ResponseType *)>  func,
ServiceType *  service 
)
inline

Member Function Documentation

◆ Deserialize()

template<class ServiceType , class RequestType , class ResponseType , class BaseRequestType = RequestType, class BaseResponseType = ResponseType>
void* grpc::internal::RpcMethodHandler< ServiceType, RequestType, ResponseType, BaseRequestType, BaseResponseType >::Deserialize ( grpc_call call,
grpc_byte_buffer req,
grpc::Status status,
void **   
)
inlinefinal

◆ RunHandler()

template<class ServiceType , class RequestType , class ResponseType , class BaseRequestType = RequestType, class BaseResponseType = ResponseType>
void grpc::internal::RpcMethodHandler< ServiceType, RequestType, ResponseType, BaseRequestType, BaseResponseType >::RunHandler ( const HandlerParameter &  param)
inlinefinal

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