20.1.7.20. RpcServerSchedulingStrategy¶
-
class RpcServerSchedulingStrategy¶
An interface with generic RPC requests functionality.
Public Functions
-
virtual ~RpcServerSchedulingStrategy() noexcept = default¶
Destructor.
Schedule a request for processing.
This method is called when a request is received and should be processed by the server. The implementation should decide how to handle the request, whether to process it immediately, or to queue it for later processing.
A call to server->execute_request(request) should eventually be made to process the request.
- Parameters:
request – The request to schedule.
server – The server instance that should process the request.
Informs that a server has been stopped and all its requests have been cancelled.
- Parameters:
server – The server instance that has been stopped.
-
virtual ~RpcServerSchedulingStrategy() noexcept = default¶