How to programmatically shutdown embedded jetty server?
I start jetty server like this:
Server server = new Server(8090); ... server.start(); server.joi
Try server.setGracefulShutdown(stands_for_milliseconds);.
server.setGracefulShutdown(stands_for_milliseconds);
I think it's similar to thread.join(stands_for_milliseconds);.
thread.join(stands_for_milliseconds);