Embedded Jetty why to use join Embedded Jetty why to use join multithreading multithreading

Embedded Jetty why to use join


join() is blocking until server is ready. It behaves like Thread.join() and indeed calls join() of Jetty's thread pool. Everything works without this because jetty starts very quickly. However if your application is heavy enough the start might take some time. Call of join() guarantees that after it the server is indeed ready.