@Retention(value=RUNTIME) @Target(value=TYPE) @Documented public @interface RetrofitClient
| 限定符和类型 | 可选元素和说明 |
|---|---|
int |
connectTimeoutMs
连接超时,单位为毫秒
|
org.slf4j.event.Level |
logLevel
日志打印级别,支持的日志级别参见
Level |
BaseLoggingInterceptor.LogStrategy |
logStrategy
日志打印策略,支持的日志打印策略参见
BaseLoggingInterceptor.LogStrategy |
String |
poolName
使用的连接池名称
default连接池自动加载,也可以手动配置覆盖默认default连接池属性 |
int |
readTimeoutMs
读取超时,单位为毫秒
|
int |
writeTimeoutMs
写入超时,单位为毫秒
|
public abstract String baseUrl
public abstract String poolName
public abstract org.slf4j.event.Level logLevel
Levelpublic abstract BaseLoggingInterceptor.LogStrategy logStrategy
BaseLoggingInterceptor.LogStrategyCopyright © 2020. All rights reserved.