@ SuppressWarnings ( "resource" ) public static synchronized void initialize ( AsyncHttpClientConfig cfg ) { if ( ! _client . compareAndSet ( null , new AsyncHttpClient ( cfg ) ) ) { throw new RuntimeException ( "async http client concurrently initialized" ) ; } }
Initializes HttpClient with custom configuration .