@Override public void destroy() { for (HttpClient instance : instances) { try { httpClientFactory.dispose(instance); } catch (Exception e) { log.warn("Could not dispose of HttpClient", e); } } }
@Override public void destroy() { for (HttpClient instance : instances) { try { httpClientFactory.dispose(instance); } catch (Exception e) { log.warn("Could not dispose of HttpClient", e); } } }
@Override public void onStop() { HttpClient httpClient = client; client = null; configuration = null; if (httpClient != null) { try { httpClientFactory.dispose(httpClient); } catch (Exception e) { log.warn("Error while disposing webhooks HTTP client", e); } } }