/** * Stop the shell service, this is an asynchronous start. * @param stopHandler handler for getting notified when service is stopped */ public void stop(Handler<AsyncResult<Void>> stopHandler) { delegate.stop(stopHandler); }
/** * Stop the shell service, this is an asynchronous start. * @param stopHandler handler for getting notified when service is stopped */ public void stop(Handler<AsyncResult<Void>> stopHandler) { delegate.stop(stopHandler); }
/** * Stop the shell service, this is an asynchronous stop. */ public void stop() { delegate.stop(); }
/** * Stop the shell service, this is an asynchronous stop. */ default void stop() { stop(ar -> { }); }
/** * Stop the shell service, this is an asynchronous stop. */ public void stop() { delegate.stop(); }
@After public void after() throws Exception { if (service != null) { CountDownLatch latch = new CountDownLatch(1); Handler<AsyncResult<Void>> handler = ar -> latch.countDown(); service.stop(handler); assertTrue(latch.await(10, TimeUnit.SECONDS)); } super.after(); }