Models a gRPC server.
More...
#include <server.h>
Models a gRPC server.
Servers are configured and started via grpc::ServerBuilder.
| grpc::Server::~Server |
( |
| ) |
|
| static void grpc::Server::SetGlobalCallbacks |
( |
GlobalCallbacks * |
callbacks | ) |
|
|
static |
Set the global callback object.
Can only be called once. Does not take ownership of callbacks, and expects the pointed to object to be alive until all server objects in the process have been destroyed.
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 file: