Interface ApacheHttpClient5TransportBuilder.ConnectionConfigCallback
-
- Enclosing class:
- ApacheHttpClient5TransportBuilder
public static interface ApacheHttpClient5TransportBuilder.ConnectionConfigCallbackCallback used the defaultConnectionConfigbeing set to theCloseableHttpClient. The connectTimeout setting has been moved fromRequestConfigtoConnectionConfig. Should not be used if you are usingHttpClientBuilder.setConnectionManager(org.apache.hc.client5.http.io.HttpClientConnectionManager)withinApacheHttpClient5TransportBuilder.HttpClientConfigCallback, as anything passed here will be overridden.- See Also:
PoolingAsyncClientConnectionManager.setDefaultConnectionConfig(org.apache.hc.client5.http.config.ConnectionConfig)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.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 Detail
-
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.
-
-