All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.gomcarter.frameworks.httpapi.HttpClientManager Maven / Gradle / Ivy

There is a newer version: 2.0.10
Show newest version
package com.gomcarter.frameworks.httpapi;

import com.gomcarter.frameworks.httpapi.config.HttpClientConfig;
import org.apache.http.client.HttpRequestRetryHandler;
import org.apache.http.conn.ConnectionKeepAliveStrategy;
import org.apache.http.impl.client.CloseableHttpClient;

/**
 * @author gomcarter
 */
public interface HttpClientManager {

    /**
     * @param httpClientConfig            httpClientConfig
     * @param httpRequestRetryHandler     httpRequestRetryHandler
     * @param connectionKeepAliveStrategy connectionKeepAliveStrategy
     * @return CloseableHttpClient
     */
    CloseableHttpClient getHttpClient(HttpClientConfig httpClientConfig,
                                      HttpRequestRetryHandler httpRequestRetryHandler,
                                      ConnectionKeepAliveStrategy connectionKeepAliveStrategy);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy