Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_CODEGEN_RPC_METHOD_H
20 #define GRPCPP_IMPL_CODEGEN_RPC_METHOD_H
39 : name_(
name), method_type_(type), channel_tag_(nullptr) {}
42 const std::shared_ptr<ChannelInterface>& channel)
45 channel_tag_(channel->RegisterMethod(
name)) {}
47 const char*
name()
const {
return name_; }
53 const char*
const name_;
55 void*
const channel_tag_;
61 #endif // GRPCPP_IMPL_CODEGEN_RPC_METHOD_H
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
void SetMethodType(RpcType type)
Definition: rpc_method.h:49
const char * name() const
Definition: rpc_method.h:47
@ CLIENT_STREAMING
Definition: rpc_method.h:33
@ BIDI_STREAMING
Definition: rpc_method.h:35
void * channel_tag() const
Definition: rpc_method.h:50
RpcMethod(const char *name, RpcType type)
Definition: rpc_method.h:38
@ SERVER_STREAMING
Definition: rpc_method.h:34
RpcType
Definition: rpc_method.h:31
@ NORMAL_RPC
Definition: rpc_method.h:32
RpcMethod(const char *name, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
Definition: rpc_method.h:41
RpcType method_type() const
Definition: rpc_method.h:48
Descriptor of an RPC method.
Definition: rpc_method.h:29