GRPC C++
1.30.0
|
Global callbacks are a set of hooks that are called when server events occur. More...
#include <server_impl.h>
Public Member Functions | |
virtual | ~GlobalCallbacks () |
virtual void | UpdateArguments (ChannelArguments *) |
Called before server is created. More... | |
virtual void | PreSynchronousRequest (grpc_impl::ServerContext *context)=0 |
Called before application callback for each synchronous server request. More... | |
virtual void | PostSynchronousRequest (grpc_impl::ServerContext *context)=0 |
Called after application callback for each synchronous server request. More... | |
virtual void | PreServerStart (Server *) |
Called before server is started. More... | |
virtual void | AddPort (Server *, const grpc::string &, grpc::ServerCredentials *, int) |
Called after a server port is added. More... | |
Global callbacks are a set of hooks that are called when server events occur.
SetGlobalCallbacks method is used to register the hooks with gRPC. Note that the GlobalCallbacks instance will be shared among all Server instances in an application and can be set exactly once per application.
|
inlinevirtual |
|
inlinevirtual |
Called after a server port is added.
|
pure virtual |
Called after application callback for each synchronous server request.
|
inlinevirtual |
Called before server is started.
|
pure virtual |
Called before application callback for each synchronous server request.
|
inlinevirtual |
Called before server is created.