Package org.elasticsearch.client
Interface RestClientBuilder.RequestConfigCallback
- Enclosing class:
- RestClientBuilder
public static interface RestClientBuilder.RequestConfigCallback
Callback used the default
RequestConfig
being set to the CloseableHttpClient
- See Also:
HttpClientBuilder.setDefaultRequestConfig(org.apache.http.client.config.RequestConfig)
-
Method Summary
Modifier and Type Method Description org.apache.http.client.config.RequestConfig.Builder
customizeRequestConfig(org.apache.http.client.config.RequestConfig.Builder requestConfigBuilder)
Allows to customize theRequestConfig
that will be used with each request.
-
Method Details
-
customizeRequestConfig
org.apache.http.client.config.RequestConfig.Builder customizeRequestConfig(org.apache.http.client.config.RequestConfig.Builder requestConfigBuilder)Allows to customize theRequestConfig
that will be used with each request. It is common to customize the different timeout values through this method without losing any other useful default value that theRestClientBuilder
internally sets.
-