Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_RPC_METHOD_H
20 #define GRPCPP_IMPL_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_;
80 #endif // GRPCPP_IMPL_RPC_METHOD_H
An Alarm posts the user-provided tag to its associated completion queue or invokes the user-provided ...
Definition: alarm.h:33
RpcMethod(const char *name, const char *suffix_for_stats, RpcType type)
Definition: rpc_method.h:44
void SetMethodType(RpcType type)
Definition: rpc_method.h:67
const char * suffix_for_stats() const
Definition: rpc_method.h:65
const char * name() const
Definition: rpc_method.h:64
@ CLIENT_STREAMING
Definition: rpc_method.h:33
@ BIDI_STREAMING
Definition: rpc_method.h:35
void * channel_tag() const
Definition: rpc_method.h:68
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:50
RpcType method_type() const
Definition: rpc_method.h:66
Descriptor of an RPC method.
Definition: rpc_method.h:29
RpcMethod(const char *name, const char *suffix_for_stats, RpcType type, const std::shared_ptr< ChannelInterface > &channel)
Definition: rpc_method.h:57