Package org.elasticsearch.client
Interface RestClientBuilder.HttpClientConfigCallback
- Enclosing class:
- RestClientBuilder
public static interface RestClientBuilder.HttpClientConfigCallback
Callback used to customize the
CloseableHttpClient
instance used by a RestClient
instance.
Allows to customize default RequestConfig
being set to the client and any parameter that
can be set through HttpClientBuilder
-
Method Summary
Modifier and Type Method Description org.apache.http.impl.nio.client.HttpAsyncClientBuilder
customizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpClientBuilder)
Allows to customize theCloseableHttpAsyncClient
being created and used by theRestClient
.
-
Method Details
-
customizeHttpClient
org.apache.http.impl.nio.client.HttpAsyncClientBuilder customizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpClientBuilder)Allows to customize theCloseableHttpAsyncClient
being created and used by theRestClient
. Commonly used to customize the defaultCredentialsProvider
for authentication or theSchemeIOSessionStrategy
for communication through ssl without losing any other useful default value that theRestClientBuilder
internally sets, like connection pooling.
-