19 #ifndef GRPCPP_IMPL_CODEGEN_RPC_METHOD_H
20 #define GRPCPP_IMPL_CODEGEN_RPC_METHOD_H
40 suffix_for_stats_(nullptr),
42 channel_tag_(nullptr) {}
48 channel_tag_(nullptr) {}
51 const std::shared_ptr<ChannelInterface>& channel)
53 suffix_for_stats_(nullptr),
55 channel_tag_(channel->RegisterMethod(
name)) {}
58 const std::shared_ptr<ChannelInterface>& channel)
62 channel_tag_(channel->RegisterMethod(
name)) {}
64 const char*
name()
const {
return name_; }
71 const char*
const name_;
72 const char*
const suffix_for_stats_;
74 void*
const channel_tag_;
Descriptor of an RPC method.
Definition: rpc_method.h:29
RpcMethod(const char *name, RpcType type)
Definition: rpc_method.h:38
RpcMethod(const char *name, const char *suffix_for_stats, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
Definition: rpc_method.h:57
RpcMethod(const char *name, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
Definition: rpc_method.h:50
void * channel_tag() const
Definition: rpc_method.h:68
void SetMethodType(RpcType type)
Definition: rpc_method.h:67
RpcType
Definition: rpc_method.h:31
@ SERVER_STREAMING
Definition: rpc_method.h:34
@ CLIENT_STREAMING
Definition: rpc_method.h:33
@ NORMAL_RPC
Definition: rpc_method.h:32
@ BIDI_STREAMING
Definition: rpc_method.h:35
const char * suffix_for_stats() const
Definition: rpc_method.h:65
RpcMethod(const char *name, const char *suffix_for_stats, RpcType type)
Definition: rpc_method.h:44
const char * name() const
Definition: rpc_method.h:64
RpcType method_type() const
Definition: rpc_method.h:66
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
DiscoveryMechanismType type
Definition: xds_cluster_resolver.cc:73