/** * Waits for the Spark server to be stopped. * If it's already stopped, will return immediately. */ public static void awaitStop() { getInstance().awaitStop(); }
/** * Waits for the Spark server to be stopped. * If it's already stopped, will return immediately. */ public static void awaitStop() { getInstance().awaitStop(); }
@PreDestroy public void destroy() { if (configuration.isEnabled()) { service.stop(); service.awaitStop(); LOGGER.info("Web admin server stopped"); } }