19 #ifndef GRPCXX_IMPL_CODEGEN_RPC_METHOD_H
20 #define GRPCXX_IMPL_CODEGEN_RPC_METHOD_H
39 : name_(name), method_type_(type), channel_tag_(NULL) {}
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 // GRPCXX_IMPL_CODEGEN_RPC_METHOD_H
Definition: rpc_method.h:32
RpcMethod(const char *name, RpcType type)
Definition: rpc_method.h:38
Definition: rpc_method.h:34
RpcType
Definition: rpc_method.h:31
const char * name() const
Definition: rpc_method.h:47
Descriptor of an RPC method.
Definition: rpc_method.h:29
RpcType method_type() const
Definition: rpc_method.h:48
void * channel_tag() const
Definition: rpc_method.h:50
RpcMethod(const char *name, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
Definition: rpc_method.h:41
Definition: rpc_method.h:33
Definition: rpc_method.h:35
void SetMethodType(RpcType type)
Definition: rpc_method.h:49