/** * Set the maximum number of connections that can be open at any given time. * If http client was created outside the operation is not allowed. */ public void setMaxTotalConnections(int max) { if (internalClient) { HttpClientUtil.setMaxConnections(httpClient, max); } else { throw new UnsupportedOperationException( "Client was created outside of HttpSolrServer"); } }
public void configure(DefaultHttpClient httpClient, SolrParams config) { HttpClientUtil.setMaxConnections(httpClient, config.getInt(HttpClientUtil.PROP_MAX_CONNECTIONS));