GRPC C++  1.13.0-dev
Public Member Functions
grpc::internal::RpcServiceMethod Class Reference

Server side rpc method class. More...

#include <rpc_service_method.h>

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...
 
void ResetHandler ()
 
void SetHandler (MethodHandler *handler)
 
- 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
 

Additional Inherited Members

- Public Types inherited from grpc::internal::RpcMethod
enum  RpcType { NORMAL_RPC = 0, CLIENT_STREAMING, SERVER_STREAMING, BIDI_STREAMING }
 

Detailed Description

Server side rpc method class.

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

◆ handler()

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

if MethodHandler is nullptr, then this is an async method

◆ ResetHandler()

void grpc::internal::RpcServiceMethod::ResetHandler ( )
inline

◆ 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

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