Package org.elasticsearch.client
Interface RestClientBuilder.HttpClientConfigCallback
-
- Enclosing class:
- RestClientBuilder
public static interface RestClientBuilder.HttpClientConfigCallbackCallback used to customize theCloseableHttpClientinstance used by aRestClientinstance. Allows to customize defaultRequestConfigbeing set to the client and any parameter that can be set throughHttpClientBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.http.impl.nio.client.HttpAsyncClientBuildercustomizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpClientBuilder)Allows to customize theCloseableHttpAsyncClientbeing created and used by theRestClient.
-
-
-
Method Detail
-
customizeHttpClient
org.apache.http.impl.nio.client.HttpAsyncClientBuilder customizeHttpClient(org.apache.http.impl.nio.client.HttpAsyncClientBuilder httpClientBuilder)
Allows to customize theCloseableHttpAsyncClientbeing created and used by theRestClient. Commonly used to customize the defaultCredentialsProviderfor authentication or theSchemeIOSessionStrategyfor communication through ssl without losing any other useful default value that theRestClientBuilderinternally sets, like connection pooling.
-
-