public class ApacheHttpClientConfig extends ClientConfig
Constructor and Description |
---|
ApacheHttpClientConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getMaxPerRoute()
获取每个路由的最大连接数
|
int |
getMaxRedirects()
获取重定向最大次数
|
int |
getMaxTotal()
获取最大连接总数
|
static ApacheHttpClientConfig |
of()
创建新的 HttpClientConfig
|
ApacheHttpClientConfig |
setMaxPerRoute(int maxPerRoute)
设置每个路由的最大连接数
|
ApacheHttpClientConfig |
setMaxRedirects(int maxRedirects)
设置重定向最大次数
|
ApacheHttpClientConfig |
setMaxTotal(int maxTotal)
设置最大连接总数
|
enableSSLVerify, getConnectionTimeout, getProxy, getReadTimeout, getSslInfo, isDisableCache, isUseCookieManager, setConnectionTimeout, setDisableCache, setHttpProxy, setProxy, setReadTimeout, setSSLInfo, setTimeout, setUseCookieManager
public static ApacheHttpClientConfig of()
public int getMaxTotal()
public ApacheHttpClientConfig setMaxTotal(int maxTotal)
maxTotal
- 最大连接总数public int getMaxPerRoute()
public ApacheHttpClientConfig setMaxPerRoute(int maxPerRoute)
maxPerRoute
- 每个路由的最大连接数public int getMaxRedirects()
public ApacheHttpClientConfig setMaxRedirects(int maxRedirects)
maxRedirects
- 重定向最大次数Copyright © 2025. All rights reserved.