@Override public void stop() { try { httpClient.stop(); } catch (Exception e) { throw Throwables.propagate(e); } } }
@Override public void stop() { try { client.stop(); } catch (Exception ex) { log.info("Error stopping HTTP client: " + ex); } }
@Override public void stop() { try { if (this.httpClient.isRunning()) { this.httpClient.stop(); } } catch (Exception ex) { throw new SockJsException("Failed to stop JettyXhrTransport", ex); } }
@Override public void close() { try { client.stop(); } catch (final Exception e) { throw new ProcessingException("Failed to stop the client.", e); } } }
@Override public void destroy() { super.destroy(); try { broadcastClient.stop(); } catch (Exception e) { log.warn(e, "Error stopping servlet"); } }
@Override public void destroy() { super.destroy(); try { wsFactory.stop(); } catch (Exception e) { log.warning("Error stopping WebSocket server", e); } if (proxyUrl != null) { try { httpClient.stop(); } catch (Exception e) { log.warning("Error stopping HTTP client", e); } try { wsClient.stop(); } catch (Exception e) { log.warning("Error stopping WebSocket client", e); } } stopped = true; synchronized (statusLock) { if (waiting) { buildThread.interrupt(); } } }
} finally { if (httpClient != null) { httpClient.stop();
} finally { if (httpClient != null) { httpClient.stop();
@Override public void close() { try { client.stop(); } catch (Exception e) { throw new RuntimeException("Unable to close JettyHttpEngine", e); } }
@Override public void stop() { try { client.stop(); } catch (Exception ex) { log.info("Error stopping HTTP client: " + ex); } }
@Override public void stop() { try { this.httpClient.stop(); } catch (Exception ex) { throw new RuntimeException(ex); } } }
private void stop(HttpClient httpClient) { try { httpClient.stop(); } catch (Exception e) { logger.warn("Failed to stop http client", e); } } }
@Override public void stop() { try { httpClient.stop(); } catch (Exception e) { throw Throwables.propagate(e); } } }
@Override public void stop() { try { httpClient.stop(); } catch (Exception e) { throw Throwables.propagate(e); } } }
private void stopClient(HttpClient client) { if (client.isRunning()) { try { client.stop(); } catch (Exception ex) { logger.error("Could not stop http client", ex); } } } }
@Override public void destroy() { super.destroy(); try { broadcastClient.stop(); } catch (Exception e) { log.warn(e, "Error stopping servlet"); } }
@Override public void destroy() { super.destroy(); try { broadcastClient.stop(); } catch (Exception e) { log.warn(e, "Error stopping servlet"); } }
public void stop() throws Exception { if (http2) nettyHttpClient.stop(); else http1Client.stop(); executor.shutdownNow(); }
@AfterClass public static void cleanEnvironment() throws Exception { wireMockServer.shutdown(); client.stop(); }
@Override protected void teardown() { try { logAppender.uninstall(); client.stop(); restServer.stop(); } catch (Exception e) { } super.teardown(); }