@Override public void stop() throws Exception { termServer.close(); } }
/** * Like {@link io.vertx.rxjava.ext.shell.term.TermServer#close} but supplying a handler that will be notified when close is complete. * @param completionHandler the handler to be notified when the term server is closed */ public void close(Handler<AsyncResult<Void>> completionHandler) { delegate.close(completionHandler); }
/** * Like {@link io.vertx.rxjava.ext.shell.term.TermServer#close} but supplying a handler that will be notified when close is complete. * @param completionHandler the handler to be notified when the term server is closed */ public void close(Handler<AsyncResult<Void>> completionHandler) { delegate.close(completionHandler); }
/** * Close the server. This will close any currently open connections. The close may not complete until after this * method has returned. */ public void close() { delegate.close(); }
/** * Close the server. This will close any currently open connections. The close may not complete until after this * method has returned. */ public void close() { delegate.close(); }
toStop.forEach(termServer -> termServer.close(handler)); sessionsClosed.setHandler(handler);
@After public void after() throws Exception { if (server != null) { CountDownLatch latch = new CountDownLatch(1); server.close(ar -> latch.countDown()); assertTrue(latch.await(10, TimeUnit.SECONDS)); } super.after(); }