public class OkHttpClientConfig extends ClientConfig
| Constructor and Description |
|---|
OkHttpClientConfig() |
| Modifier and Type | Method and Description |
|---|---|
int |
getMaxIdle()
获取最大空闲连接数
|
static OkHttpClientConfig |
of()
创建新的 OkHttpClientConfig
|
ClientConfig |
setMaxIdle(int maxIdle)
设置最大空闲连接数
|
enableSSLVerify, getConnectionTimeout, getProxy, getReadTimeout, getSslInfo, getTimeToLive, isDisableCache, isUseCookieManager, setConnectionTimeout, setDisableCache, setHttpProxy, setProxy, setReadTimeout, setSSLInfo, setTimeout, setTimeToLive, setUseCookieManagerpublic static OkHttpClientConfig of()
public int getMaxIdle()
public ClientConfig setMaxIdle(int maxIdle)
maxIdle - 最大空闲连接数Copyright © 2025. All rights reserved.