#include <client_interceptor.h>
Public Types | |
enum | Type { Type::UNARY, Type::CLIENT_STREAMING, Type::SERVER_STREAMING, Type::BIDI_STREAMING, Type::UNKNOWN } |
Type categorizes RPCs by unary or streaming type. More... | |
Public Member Functions | |
ChannelInterface * | channel () |
Return a pointer to the channel on which the RPC is being sent. More... | |
grpc::ClientContext * | client_context () |
ClientRpcInfo (ClientRpcInfo &&)=default | |
ClientRpcInfo (const ClientRpcInfo &)=delete | |
const char * | method () const |
Return the fully-specified method name. More... | |
const char * | suffix_for_stats () const |
Type | type () const |
Return the type of the RPC (unary or a streaming flavor) More... | |
~ClientRpcInfo () | |
Private Member Functions | |
ClientRpcInfo ()=default | |
ClientRpcInfo (grpc::ClientContext *ctx, internal::RpcMethod::RpcType type, const char *method, const char *suffix_for_stats, grpc::ChannelInterface *channel) | |
ClientRpcInfo & | operator= (ClientRpcInfo &&)=default |
void | RegisterInterceptors (const std::vector< std::unique_ptr< experimental::ClientInterceptorFactoryInterface >> &creators, size_t interceptor_pos) |
void | RunInterceptor (experimental::InterceptorBatchMethods *interceptor_methods, size_t pos) |
Private Attributes | |
grpc::ChannelInterface * | channel_ = nullptr |
grpc::ClientContext * | ctx_ = nullptr |
bool | hijacked_ = false |
size_t | hijacked_interceptor_ = 0 |
std::vector< std::unique_ptr< experimental::Interceptor > > | interceptors_ |
const char * | method_ = nullptr |
const char * | suffix_for_stats_ = nullptr |
Type | type_ {Type::UNKNOWN} |
Friends | |
class | grpc::ClientContext |
class | internal::InterceptorBatchMethodsImpl |
Definition at line 68 of file impl/codegen/client_interceptor.h.
|
strong |
Type categorizes RPCs by unary or streaming type.
Enumerator | |
---|---|
UNARY | |
CLIENT_STREAMING | |
SERVER_STREAMING | |
BIDI_STREAMING | |
UNKNOWN |
Definition at line 73 of file impl/codegen/client_interceptor.h.
|
inline |
Definition at line 81 of file impl/codegen/client_interceptor.h.
|
delete |
|
default |
|
privatedefault |
|
inlineprivate |
Definition at line 124 of file impl/codegen/client_interceptor.h.
|
inline |
Return a pointer to the channel on which the RPC is being sent.
Definition at line 97 of file impl/codegen/client_interceptor.h.
|
inline |
Return a pointer to the underlying ClientContext structure associated with the RPC to support features that apply to it
Definition at line 101 of file impl/codegen/client_interceptor.h.
|
inline |
Return the fully-specified method name.
Definition at line 90 of file impl/codegen/client_interceptor.h.
|
privatedefault |
|
inlineprivate |
Definition at line 144 of file impl/codegen/client_interceptor.h.
|
inlineprivate |
Definition at line 138 of file impl/codegen/client_interceptor.h.
|
inline |
Return an identifying suffix for the client stub, or nullptr if one wasn't specified.
Definition at line 94 of file impl/codegen/client_interceptor.h.
|
inline |
Return the type of the RPC (unary or a streaming flavor)
Definition at line 104 of file impl/codegen/client_interceptor.h.
|
friend |
Definition at line 180 of file impl/codegen/client_interceptor.h.
|
friend |
Definition at line 179 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 174 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 169 of file impl/codegen/client_interceptor.h.
Definition at line 176 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 177 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 175 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 172 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 173 of file impl/codegen/client_interceptor.h.
|
private |
Definition at line 171 of file impl/codegen/client_interceptor.h.