GRPC C++  1.66.0
Public Member Functions | Protected Member Functions | Friends
grpc::Service Class Reference

Descriptor of an RPC service and its various RPC methods. More...

#include <service_type.h>

Public Member Functions

 Service ()
 
virtual ~Service ()
 
bool has_async_methods () const
 
bool has_synchronous_methods () const
 
bool has_callback_methods () const
 
bool has_generic_methods () const
 

Protected Member Functions

template<class Message >
void RequestAsyncUnary (int index, grpc::ServerContext *context, Message *request, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
void RequestAsyncClientStreaming (int index, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
template<class Message >
void RequestAsyncServerStreaming (int index, grpc::ServerContext *context, Message *request, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
void RequestAsyncBidiStreaming (int index, grpc::ServerContext *context, internal::ServerAsyncStreamingInterface *stream, grpc::CompletionQueue *call_cq, grpc::ServerCompletionQueue *notification_cq, void *tag)
 
void AddMethod (internal::RpcServiceMethod *method)
 
void MarkMethodAsync (int index)
 
void MarkMethodRaw (int index)
 
void MarkMethodGeneric (int index)
 
void MarkMethodStreamed (int index, internal::MethodHandler *streamed_method)
 
void MarkMethodCallback (int index, internal::MethodHandler *handler)
 
void MarkMethodRawCallback (int index, internal::MethodHandler *handler)
 
internal::MethodHandlerGetHandler (int index)
 

Friends

class Server
 
class ServerInterface
 

Detailed Description

Descriptor of an RPC service and its various RPC methods.

Constructor & Destructor Documentation

◆ Service()

grpc::Service::Service ( )
inline

◆ ~Service()

virtual grpc::Service::~Service ( )
inlinevirtual

Member Function Documentation

◆ AddMethod()

void grpc::Service::AddMethod ( internal::RpcServiceMethod method)
inlineprotected

◆ GetHandler()

internal::MethodHandler* grpc::Service::GetHandler ( int  index)
inlineprotected

◆ has_async_methods()

bool grpc::Service::has_async_methods ( ) const
inline

◆ has_callback_methods()

bool grpc::Service::has_callback_methods ( ) const
inline

◆ has_generic_methods()

bool grpc::Service::has_generic_methods ( ) const
inline

◆ has_synchronous_methods()

bool grpc::Service::has_synchronous_methods ( ) const
inline

◆ MarkMethodAsync()

void grpc::Service::MarkMethodAsync ( int  index)
inlineprotected

◆ MarkMethodCallback()

void grpc::Service::MarkMethodCallback ( int  index,
internal::MethodHandler handler 
)
inlineprotected

◆ MarkMethodGeneric()

void grpc::Service::MarkMethodGeneric ( int  index)
inlineprotected

◆ MarkMethodRaw()

void grpc::Service::MarkMethodRaw ( int  index)
inlineprotected

◆ MarkMethodRawCallback()

void grpc::Service::MarkMethodRawCallback ( int  index,
internal::MethodHandler handler 
)
inlineprotected

◆ MarkMethodStreamed()

void grpc::Service::MarkMethodStreamed ( int  index,
internal::MethodHandler streamed_method 
)
inlineprotected

◆ RequestAsyncBidiStreaming()

void grpc::Service::RequestAsyncBidiStreaming ( int  index,
grpc::ServerContext context,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

◆ RequestAsyncClientStreaming()

void grpc::Service::RequestAsyncClientStreaming ( int  index,
grpc::ServerContext context,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

◆ RequestAsyncServerStreaming()

template<class Message >
void grpc::Service::RequestAsyncServerStreaming ( int  index,
grpc::ServerContext context,
Message *  request,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

◆ RequestAsyncUnary()

template<class Message >
void grpc::Service::RequestAsyncUnary ( int  index,
grpc::ServerContext context,
Message *  request,
internal::ServerAsyncStreamingInterface stream,
grpc::CompletionQueue call_cq,
grpc::ServerCompletionQueue notification_cq,
void *  tag 
)
inlineprotected

Friends And Related Function Documentation

◆ Server

friend class Server
friend

◆ ServerInterface

friend class ServerInterface
friend

The documentation for this class was generated from the following file: