Interface ApacheHttpClient5TransportBuilder.ConnectionConfigCallback
- Enclosing class:
ApacheHttpClient5TransportBuilder
public static interface ApacheHttpClient5TransportBuilder.ConnectionConfigCallback
Callback used the default
ConnectionConfig being set to the CloseableHttpClient.
The connectTimeout setting has been moved from RequestConfig to ConnectionConfig.
Should not be used if you are using HttpClientBuilder.setConnectionManager(org.apache.hc.client5.http.io.HttpClientConnectionManager) within ApacheHttpClient5TransportBuilder.HttpClientConfigCallback, as anything passed here will be overridden.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.hc.client5.http.config.ConnectionConfig.BuildercustomizeConnectionConfig(org.apache.hc.client5.http.config.ConnectionConfig.Builder connectionConfigBuilder) Allows to customize theConnectionConfigthat will be used with each request.
-
Method Details
-
customizeConnectionConfig
org.apache.hc.client5.http.config.ConnectionConfig.Builder customizeConnectionConfig(org.apache.hc.client5.http.config.ConnectionConfig.Builder connectionConfigBuilder) Allows to customize theConnectionConfigthat 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 theRestClientBuilderinternally sets.- Parameters:
connectionConfigBuilder- theRestClientBuilderfor customizing the connection configuration.
-