Models a gRPC server.
More...
#include <server.h>
Models a gRPC server.
Servers are configured and started via grpc::ServerBuilder.
grpc::Server::~Server |
( |
| ) |
|
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
-
deadline | How 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.
The documentation for this class was generated from the following files: