This is a followup question to How to shutdown a Spring Boot Application in a correct way?
Suppose we have a server that has 3 clients currently connected and each client is running a long job. We then shutdown the server with the command:
curl -X POST localhost:port/shutdown
Does that:
A) Let the server finish the jobs that the 3 clients are running before shutting down?
B) Disallow any other connections from happening such that the server will eventually shut down?