class RpcServiceMethod

Defined at line 86 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

Server side rpc method class

Public Methods

void RpcServiceMethod (const char * name, RpcMethod::RpcType type, MethodHandler * handler)

Takes ownership of the handler

Defined at line 89 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

void set_server_tag (void * tag)

Defined at line 104 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

void * server_tag ()

Defined at line 105 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

MethodHandler * handler ()

if MethodHandler is nullptr, then this is an async method

Defined at line 107 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

ApiType api_type ()

Defined at line 108 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

void SetHandler (MethodHandler * handler)

Defined at line 109 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

void SetServerApiType (RpcServiceMethod::ApiType type)

Defined at line 110 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h

Enumerations

enum class ApiType
Name Value Comments
SYNC 0 --
ASYNC 1 --
RAW 2 --
CALL_BACK 3

not CALLBACK because that is reserved in Windows

RAW_CALL_BACK 4 --

Defined at line 96 of file ../../third_party/grpc/src/include/grpcpp/impl/rpc_service_method.h