#include <server_interceptor.h>
Public Types | |
enum | Type { Type::UNARY, Type::CLIENT_STREAMING, Type::SERVER_STREAMING, Type::BIDI_STREAMING } |
Type categorizes RPCs by unary or streaming type. More... | |
Public Member Functions | |
const char * | method () const |
Return the fully-specified method name. More... | |
ServerRpcInfo & | operator= (const ServerRpcInfo &)=delete |
ServerRpcInfo & | operator= (ServerRpcInfo &&)=delete |
ServerContextBase * | server_context () |
ServerRpcInfo (const ServerRpcInfo &)=delete | |
ServerRpcInfo (ServerRpcInfo &&)=delete | |
Type | type () const |
Return the type of the RPC (unary or a streaming flavor) More... | |
~ServerRpcInfo () | |
Private Member Functions | |
void | Ref () |
void | RegisterInterceptors (const std::vector< std::unique_ptr< experimental::ServerInterceptorFactoryInterface >> &creators) |
void | RunInterceptor (experimental::InterceptorBatchMethods *interceptor_methods, size_t pos) |
ServerRpcInfo (ServerContextBase *ctx, const char *method, internal::RpcMethod::RpcType type) | |
void | Unref () |
Private Attributes | |
ServerContextBase * | ctx_ = nullptr |
std::vector< std::unique_ptr< experimental::Interceptor > > | interceptors_ |
const char * | method_ = nullptr |
std::atomic< intptr_t > | ref_ {1} |
const Type | type_ |
Friends | |
class | grpc::ServerContextBase |
class | internal::InterceptorBatchMethodsImpl |
ServerRpcInfo represents the state of a particular RPC as it appears to an interceptor. It is created and owned by the library and passed to the CreateServerInterceptor method of the application's ServerInterceptorFactoryInterface implementation
Definition at line 58 of file impl/codegen/server_interceptor.h.
|
strong |
Type categorizes RPCs by unary or streaming type.
Enumerator | |
---|---|
UNARY | |
CLIENT_STREAMING | |
SERVER_STREAMING | |
BIDI_STREAMING |
Definition at line 61 of file impl/codegen/server_interceptor.h.
|
inline |
Definition at line 63 of file impl/codegen/server_interceptor.h.
|
delete |
|
delete |
|
inlineprivate |
Definition at line 97 of file impl/codegen/server_interceptor.h.
|
inline |
Return the fully-specified method name.
Definition at line 74 of file impl/codegen/server_interceptor.h.
|
delete |
|
delete |
|
inlineprivate |
Definition at line 121 of file impl/codegen/server_interceptor.h.
|
inlineprivate |
Definition at line 108 of file impl/codegen/server_interceptor.h.
|
inlineprivate |
Definition at line 102 of file impl/codegen/server_interceptor.h.
|
inline |
Return a pointer to the underlying ServerContext structure associated with the RPC to support features that apply to it
Definition at line 81 of file impl/codegen/server_interceptor.h.
|
inline |
Return the type of the RPC (unary or a streaming flavor)
Definition at line 77 of file impl/codegen/server_interceptor.h.
|
inlineprivate |
Definition at line 122 of file impl/codegen/server_interceptor.h.
|
friend |
Definition at line 135 of file impl/codegen/server_interceptor.h.
|
friend |
Definition at line 134 of file impl/codegen/server_interceptor.h.
|
private |
Definition at line 128 of file impl/codegen/server_interceptor.h.
|
private |
Definition at line 132 of file impl/codegen/server_interceptor.h.
|
private |
Definition at line 129 of file impl/codegen/server_interceptor.h.
|
private |
Definition at line 131 of file impl/codegen/server_interceptor.h.
Definition at line 130 of file impl/codegen/server_interceptor.h.