/** * Stops the eventbus and any resources managed by the eventbus. */ public static void stop(Env env) { PhpVerticleFactory.vertx.stop(); }
/** {@inheritDoc} */ @Override public void close() throws IOException { vertx.stop(); }
@PreDestroy public void deactivate() { if (vertx != null) { try { vertx.stop(); } catch (Throwable e) { LOG.warn("Failed to stop vertx: " + e, e); } vertx = null; } }