I'm having trouble finding any information about whether the embedded Jetty server is guaranteed to be fully initialized and ready to receive requests when returning a Server.start () call.
I also could not find anything convincing when debugging.
If the server is still initializing when the call returns, is there a way to register the callback so that I can be notified when it is really ready for action?
Yes, when you return from the Server.start()server is ready.
Server.start()
LifeCycle.Listener Server.addLifeCycleListener(listener), . Server.start(), , Listener.lifeCycleStarted() .
LifeCycle.Listener
Server.addLifeCycleListener(listener)
Listener.lifeCycleStarted()
, , , , ?
Source: https://habr.com/ru/post/1781121/More articles:How to texture a cylinder map in OpenGL? - androidDistributed Computing in C # Using Virtual Servers - c #Performance Registration Library - .netasp.net mvc 2 customErrors iis 7.5 not working - asp.netИспользование клавиатуры для отображения контекстного меню в связанном с данными WPF TreeView - wpfUsing boost :: test with Visual Studio 2010 - how to view test result? - c ++How to sort in order on weekdays (like in a calendar week) instead of alphabetical order (in C #)? - c #php function & symbol - functionRails3 Rack response - undefined response.body method - ruby-on-rails-3how much rra is in rrd? - rrdtoolAll Articles