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

com.cloudconvert.client.http.AbstractCloseableHttpClientProvider Maven / Gradle / Ivy

Go to download

CloudConvert is an online file converter API - more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats supported.

There is a newer version: 1.2.1
Show newest version
package com.cloudconvert.client.http;

import lombok.Getter;

import java.io.Closeable;
import java.io.IOException;

public abstract class AbstractCloseableHttpClientProvider {

    public static final int DEFAULT_MAX_PER_ROUTE = 3;
    public static final int MAX_TOTAL = 37;

    @Getter
    private final int defaultMaxPerRoute;

    @Getter
    private final int maxTotal;

    public AbstractCloseableHttpClientProvider() {
        this(DEFAULT_MAX_PER_ROUTE, MAX_TOTAL);
    }

    public AbstractCloseableHttpClientProvider(final int defaultMaxPerRoute, final int maxTotal) {
        this.defaultMaxPerRoute = defaultMaxPerRoute;
        this.maxTotal = maxTotal;
    }

    public abstract C provide() throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy