/** * Close the shell server, this is an asynchronous close. * @param completionHandler handler for getting notified when service is stopped */ public void close(Handler<AsyncResult<Void>> completionHandler) { delegate.close(completionHandler); }
/** * Close the shell server, this is an asynchronous close. * * @param completionHandler handler for getting notified when service is stopped */ void close(Handler<AsyncResult<Void>> completionHandler);
@Override public void stop(Handler<AsyncResult<Void>> stopHandler) { server.close(stopHandler); } }
/** * Close the shell server, this is an asynchronous close. */ public void close() { delegate.close(); }
/** * Close the shell server, this is an asynchronous close. * @param completionHandler handler for getting notified when service is stopped */ public void close(Handler<AsyncResult<Void>> completionHandler) { delegate.close(completionHandler); }
/** * Close the shell server, this is an asynchronous close. */ public void close() { delegate.close(); }
@Test public void testCloseConnection(TestContext context) throws Exception { testClose(context, (conn) -> { conn.close(); }); shellServer.close(); shellServer = null; }
@Test public void testCloseShellServer(TestContext context) throws Exception { testClose(context, conn -> { Async async = context.async(); shellServer.close(context.asyncAssertSuccess(v -> async.complete())); async.awaitSuccess(20000); }); }
end.get().run(); processEnding.awaitSuccess(20000); shellServer.close(context.asyncAssertSuccess(v -> { closed.complete();