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:
    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.Builder customizeConnectionConfig​(org.apache.hc.client5.http.config.ConnectionConfig.Builder connectionConfigBuilder)
      Allows to customize the ConnectionConfig that 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 the ConnectionConfig 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 the RestClientBuilder internally sets.
        Parameters:
        connectionConfigBuilder - the RestClientBuilder for customizing the connection configuration.