public class HttpAsyncClientUtils
extends java.lang.Object
HttpAsyncClient
.Modifier | Constructor and Description |
---|---|
private |
HttpAsyncClientUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
closeQuietly(CloseableHttpAsyncClient httpAsyncClient)
Unconditionally close a httpAsyncClient.
|
public static void closeQuietly(CloseableHttpAsyncClient httpAsyncClient)
Example Code:
HttpAsyncClient httpAsyncClient = null; try { httpAsyncClient = ...; } catch (Exception e) { // error handling } finally { HttpAsyncClientUtils.closeQuietly(httpAsyncClient); }
httpAsyncClient
- the HttpAsyncClient to close, may be null or already closed.