Class ModifiedHttp2SolrClient.Builder
- java.lang.Object
-
- org.apache.manifoldcf.agents.output.solr.ModifiedHttp2SolrClient.Builder
-
- Enclosing class:
- ModifiedHttp2SolrClient
public static class ModifiedHttp2SolrClient.Builder extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
baseSolrUrl
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModifiedHttp2SolrClient
build()
ModifiedHttp2SolrClient.Builder
connectionTimeout(int connectionTimeOut)
ModifiedHttp2SolrClient.Builder
idleTimeout(int idleConnectionTimeout)
ModifiedHttp2SolrClient.Builder
maxConnectionsPerHost(int max)
Set maxConnectionsPerHost for http1 connections, maximum number http2 connections is limited by 4ModifiedHttp2SolrClient.Builder
useHttp1_1(boolean useHttp1_1)
ModifiedHttp2SolrClient.Builder
withBasicAuthCredentials(java.lang.String user, java.lang.String pass)
ModifiedHttp2SolrClient.Builder
withExecutor(java.util.concurrent.ExecutorService executor)
ModifiedHttp2SolrClient.Builder
withHttpClient(ModifiedHttp2SolrClient httpClient)
ReusehttpClient
connections poolModifiedHttp2SolrClient.Builder
withSSLConfig(org.apache.solr.client.solrj.embedded.SSLConfig sslConfig)
-
-
-
Method Detail
-
build
public ModifiedHttp2SolrClient build()
-
withHttpClient
public ModifiedHttp2SolrClient.Builder withHttpClient(ModifiedHttp2SolrClient httpClient)
ReusehttpClient
connections pool
-
withExecutor
public ModifiedHttp2SolrClient.Builder withExecutor(java.util.concurrent.ExecutorService executor)
-
withSSLConfig
public ModifiedHttp2SolrClient.Builder withSSLConfig(org.apache.solr.client.solrj.embedded.SSLConfig sslConfig)
-
withBasicAuthCredentials
public ModifiedHttp2SolrClient.Builder withBasicAuthCredentials(java.lang.String user, java.lang.String pass)
-
maxConnectionsPerHost
public ModifiedHttp2SolrClient.Builder maxConnectionsPerHost(int max)
Set maxConnectionsPerHost for http1 connections, maximum number http2 connections is limited by 4
-
idleTimeout
public ModifiedHttp2SolrClient.Builder idleTimeout(int idleConnectionTimeout)
-
useHttp1_1
public ModifiedHttp2SolrClient.Builder useHttp1_1(boolean useHttp1_1)
-
connectionTimeout
public ModifiedHttp2SolrClient.Builder connectionTimeout(int connectionTimeOut)
-
-