src/main/java/com/ning/metrics/goodwill/access/GoodwillAccessor.java
private static AsyncHttpClient createHttpClient()
    {
        // Don't limit the number of connections per host
        // See https://github.com/ning/async-http-client/issues/issue/28
        final AsyncHttpClientConfig.Builder builder = new AsyncHttpClientConfig.Builder();
        builder.setMaximumConnectionsPerHost(-1);
        return new AsyncHttpClient(builder.build());
    }
private static AsyncHttpClient createHttpClient()
    {
        // Don't limit the number of connections per host
        // See https://github.com/ning/async-http-client/issues/issue/28
        final AsyncHttpClientConfig.Builder builder = new AsyncHttpClientConfig.Builder();
        builder.setMaximumConnectionsPerHost(-1);
        return new AsyncHttpClient(builder.build());
    }
private static AsyncHttpClient createHttpClient ( ) { // Don't limit the number of connections per host // See https://github.com/ning/async-http-client/issues/issue/28 final AsyncHttpClientConfig . Builder builder = new AsyncHttpClientConfig . Builder ( ) ; builder . setMaximumConnectionsPerHost ( - 1 ) ; return new AsyncHttpClient ( builder . build ( ) ) ; }
note: if called from base-class constructor, couldn't sub-class; hence just make static
note : if called from base - class constructor couldn t sub - class ; hence just make static