34 #ifndef GRPCXX_IMPL_CODEGEN_RPC_METHOD_H
35 #define GRPCXX_IMPL_CODEGEN_RPC_METHOD_H
54 : name_(name), method_type_(type), channel_tag_(NULL) {}
57 const std::shared_ptr<ChannelInterface>& channel)
60 channel_tag_(channel->RegisterMethod(name)) {}
62 const char*
name()
const {
return name_; }
68 const char*
const name_;
70 void*
const channel_tag_;
75 #endif // GRPCXX_IMPL_CODEGEN_RPC_METHOD_H
Definition: rpc_method.h:49
void SetMethodType(RpcType type)
Definition: rpc_method.h:64
RpcType
Definition: rpc_method.h:46
RpcType method_type() const
Definition: rpc_method.h:63
Definition: rpc_method.h:48
void * channel_tag() const
Definition: rpc_method.h:65
Descriptor of an RPC method.
Definition: rpc_method.h:44
RpcMethod(const char *name, RpcType type)
Definition: rpc_method.h:53
Definition: rpc_method.h:50
Definition: rpc_method.h:47
RpcMethod(const char *name, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
Definition: rpc_method.h:56
const char * name() const
Definition: rpc_method.h:62