GRPC C++  0.11.0.0
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Data Structures | Public Member Functions | Friends
grpc::Server Class Reference

Models a gRPC server. More...

#include <server.h>

Data Structures

class  ShutdownRequest
 
class  SyncRequest
 
class  UnimplementedAsyncRequest
 
class  UnimplementedAsyncRequestContext
 
class  UnimplementedAsyncResponse
 

Public Member Functions

 ~Server ()
 
template<class T >
void Shutdown (const T &deadline)
 Shutdown the server, blocking until all rpc processing finishes. More...
 
void Shutdown ()
 Shutdown the server, waiting for all rpc processing to finish. More...
 
void Wait ()
 Block waiting for all work to complete. More...
 
- Public Member Functions inherited from grpc::GrpcLibrary
 GrpcLibrary ()
 
virtual ~GrpcLibrary ()
 

Friends

class AsyncGenericService
 
class AsynchronousService
 
class ServerBuilder
 

Detailed Description

Models a gRPC server.

Servers are configured and started via grpc::ServerBuilder.

Constructor & Destructor Documentation

grpc::Server::~Server ( )

Member Function Documentation

template<class T >
void grpc::Server::Shutdown ( const T &  deadline)
inline

Shutdown the server, blocking until all rpc processing finishes.

Forcefully terminate pending calls after deadline expires.

Parameters
deadlineHow long to wait until pending rpcs are forcefully terminated.
void grpc::Server::Shutdown ( )
inline

Shutdown the server, waiting for all rpc processing to finish.

void grpc::Server::Wait ( )

Block waiting for all work to complete.

Warning
The server must be either shutting down or some other thread must call Shutdown for this function to ever return.

Friends And Related Function Documentation

friend class AsyncGenericService
friend
friend class AsynchronousService
friend
friend class ServerBuilder
friend

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