}); try { verticleHolder.verticle.stop(stopFuture); } catch (Throwable t) { stopFuture.fail(t);
}); try { verticleHolder.verticle.stop(stopFuture); } catch (Throwable t) { stopFuture.fail(t);
@Override public void stop(Future<Void> stopFuture) throws Exception { delegateVerticle.stop(stopFuture); } }
/** * Vert.x calls the stop method when the verticle is undeployed. * Put any cleanup code for your verticle in here * * @throws Exception */ @Override public void stop(Future<Void> stopFuture) throws Exception { // Stop the real verticle if (realVerticle != null) { realVerticle.stop(stopFuture); realVerticle = null; } }
/** * Vert.x calls the stop method when the verticle is undeployed. * Put any cleanup code for your verticle in here * * @throws Exception */ @Override public void stop(Future<Void> stopFuture) throws Exception { // Stop the real verticle if (realVerticle != null) { realVerticle.stop(stopFuture); realVerticle = null; } }
@Override public void stop(Future<Void> stopFuture) throws Exception { try { verticle.stop(stopFuture); } finally { module.removeInstance(); } } }
realVerticle.stop(future); } else { future.complete();