com.cloudconvert.client.http.AbstractCloseableHttpClientProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudconvert-java Show documentation
Show all versions of cloudconvert-java Show documentation
CloudConvert is an online file converter API - more than 200 different audio, video, document, ebook, archive, image, spreadsheet and presentation formats supported.
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