Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.http.nio.client.util
Class HttpAsyncClientUtils

    java.lang.Object
      org.apache.http.nio.client.util.HttpAsyncClientUtils

    public class HttpAsyncClientUtils

extends Object

Static helpers for dealing with `HttpAsyncClient`.

Method Summary
`static void` | `closeQuietly(CloseableHttpAsyncClient httpAsyncClient)` Unconditionally close a httpAsyncClient.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### closeQuietly

    public static void closeQuietly(CloseableHttpAsyncClient httpAsyncClient)

  Unconditionally close a httpAsyncClient. Shuts down the underlying connection manager and releases the resources.

  Example Code:

       HttpAsyncClient httpAsyncClient = null;
       try {
         httpAsyncClient = ...;
       } catch (Exception e) {
         // error handling
       } finally {
         HttpAsyncClientUtils.closeQuietly(httpAsyncClient);
       }

  Parameters:
    `httpAsyncClient` - the HttpAsyncClient to close, may be null or already closed.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2010–2021 The Apache Software Foundation. All rights reserved.