GRPC C++  1.30.0
Public Types | Public Member Functions
grpc::internal::RpcServiceMethod Class Reference

Server side rpc method class. More...

#include <rpc_service_method.h>

Public Types

enum  ApiType {
  ApiType::SYNC, ApiType::ASYNC, ApiType::RAW, ApiType::CALL_BACK,
  ApiType::RAW_CALL_BACK
}
 
- Public Types inherited from grpc::internal::RpcMethod
enum  RpcType { NORMAL_RPC = 0, CLIENT_STREAMING, SERVER_STREAMING, BIDI_STREAMING }
 

Public Member Functions

 RpcServiceMethod (const char *name, RpcMethod::RpcType type, MethodHandler *handler)
 Takes ownership of the handler. More...
 
void set_server_tag (void *tag)
 
void * server_tag () const
 
MethodHandlerhandler () const
 if MethodHandler is nullptr, then this is an async method More...
 
ApiType api_type () const
 
void SetHandler (MethodHandler *handler)
 
void SetServerApiType (RpcServiceMethod::ApiType type)
 
- Public Member Functions inherited from grpc::internal::RpcMethod
 RpcMethod (const char *name, RpcType type)
 
 RpcMethod (const char *name, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
 
const char * name () const
 
RpcType method_type () const
 
void SetMethodType (RpcType type)
 
void * channel_tag () const
 

Detailed Description

Server side rpc method class.

Member Enumeration Documentation

◆ ApiType

Enumerator
SYNC 
ASYNC 
RAW 
CALL_BACK 
RAW_CALL_BACK 

Constructor & Destructor Documentation

◆ RpcServiceMethod()

grpc::internal::RpcServiceMethod::RpcServiceMethod ( const char *  name,
RpcMethod::RpcType  type,
MethodHandler handler 
)
inline

Takes ownership of the handler.

Member Function Documentation

◆ api_type()

ApiType grpc::internal::RpcServiceMethod::api_type ( ) const
inline

◆ handler()

MethodHandler* grpc::internal::RpcServiceMethod::handler ( ) const
inline

if MethodHandler is nullptr, then this is an async method

◆ server_tag()

void* grpc::internal::RpcServiceMethod::server_tag ( ) const
inline

◆ set_server_tag()

void grpc::internal::RpcServiceMethod::set_server_tag ( void *  tag)
inline

◆ SetHandler()

void grpc::internal::RpcServiceMethod::SetHandler ( MethodHandler handler)
inline

◆ SetServerApiType()

void grpc::internal::RpcServiceMethod::SetServerApiType ( RpcServiceMethod::ApiType  type)
inline

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