Go to the documentation of this file.
19 #ifndef GRPCPP_IMPL_RPC_METHOD_H
20 #define GRPCPP_IMPL_RPC_METHOD_H
41 suffix_for_stats_(nullptr),
43 channel_tag_(nullptr) {}
49 channel_tag_(nullptr) {}
52 const std::shared_ptr<ChannelInterface>& channel)
54 suffix_for_stats_(nullptr),
56 channel_tag_(channel->RegisterMethod(
name)) {}
59 const std::shared_ptr<ChannelInterface>& channel)
63 channel_tag_(channel->RegisterMethod(
name)) {}
65 const char*
name()
const {
return name_; }
72 const char*
const name_;
73 const char*
const suffix_for_stats_;
75 void*
const channel_tag_;
81 #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:45
void SetMethodType(RpcType type)
Definition: rpc_method.h:68
const char * suffix_for_stats() const
Definition: rpc_method.h:66
const char * name() const
Definition: rpc_method.h:65
@ CLIENT_STREAMING
Definition: rpc_method.h:33
@ BIDI_STREAMING
Definition: rpc_method.h:35
void * channel_tag() const
Definition: rpc_method.h:69
RpcMethod(const char *name, RpcType type)
Definition: rpc_method.h:39
@ 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:51
@ SESSION_RPC
Definition: rpc_method.h:36
RpcType method_type() const
Definition: rpc_method.h:67
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:58