public static class Http2SolrClient.Builder extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
baseSolrUrl |
Modifier and Type | Method and Description |
---|---|
Http2SolrClient |
build() |
Http2SolrClient.Builder |
connectionTimeout(int connectionTimeOut) |
Http2SolrClient.Builder |
idleTimeout(int idleConnectionTimeout) |
Http2SolrClient.Builder |
maxConnectionsPerHost(int max)
Set maxConnectionsPerHost for http1 connections, maximum number http2 connections is limited by 4
|
Http2SolrClient.Builder |
useHttp1_1(boolean useHttp1_1) |
Http2SolrClient.Builder |
withBasicAuthCredentials(String user,
String pass) |
Http2SolrClient.Builder |
withHttpClient(Http2SolrClient httpClient)
Reuse
httpClient connections pool |
Http2SolrClient.Builder |
withSSLConfig(SSLConfig sslConfig) |
protected String baseSolrUrl
public Builder()
public Builder(String baseSolrUrl)
public Http2SolrClient build()
public Http2SolrClient.Builder withHttpClient(Http2SolrClient httpClient)
httpClient
connections poolpublic Http2SolrClient.Builder withSSLConfig(SSLConfig sslConfig)
public Http2SolrClient.Builder withBasicAuthCredentials(String user, String pass)
public Http2SolrClient.Builder maxConnectionsPerHost(int max)
public Http2SolrClient.Builder idleTimeout(int idleConnectionTimeout)
public Http2SolrClient.Builder useHttp1_1(boolean useHttp1_1)
public Http2SolrClient.Builder connectionTimeout(int connectionTimeOut)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.