public void shutdown()

in src/main/java/com/spotify/ffwd/http/RawHttpClientFactory.java [38:72]


  public void shutdown() {
    Exception e = null;

    try {
      httpClient.dispatcher().executorService().shutdown();
    } catch (final Exception inner) {
      e = inner;
    }

    try {
      httpClient.connectionPool().evictAll();
    } catch (final Exception inner) {
      if (e != null) {
        inner.addSuppressed(e);
      }

      e = inner;
    }

    if (httpClient.cache() != null) {
      try {
        httpClient.cache().close();
      } catch (final Exception inner) {
        if (e != null) {
          inner.addSuppressed(e);
        }

        e = inner;
      }
    }

    if (e != null) {
      throw new RuntimeException(e);
    }
  }