日志用httpclient 超时参数设置从配置文件中获取

This commit is contained in:
zhanghongqing
2018-08-07 14:17:29 +08:00
parent 78bfd4dc5e
commit a1978864b3
3 changed files with 19 additions and 13 deletions

View File

@@ -571,4 +571,12 @@ public final class Constants {
public static final String TRAFFIC_SYSTEM_CHART=Configurations.getStringProperty("trafficSystemChart","trafficSystemChart");
public static final String TRAFFIC_WEBSITELIST=Configurations.getStringProperty("trafficWebsiteList","trafficWebsiteList");
public static final String TRAFFIC_WEBTYPECHART=Configurations.getStringProperty("trafficWebTypeChart","trafficWebTypeChart");
/**
* httpclient 工具超时时间设置
*/
public static final int HTTP_SOCKET_TIMEOUT= Configurations.getIntProperty("http_socket_timeout", 300000);
public static final int HTTP_CONNECT_TIMEOUT= Configurations.getIntProperty("http_connect_timeout", 10000);
public static final int HTTP_CONNECT_REQUEST_TIMEOUT = Configurations.getIntProperty("http_connect_request_timeout", 50000);
public static final int HTTP_CONNECT_RETRY_TIMES = Configurations.getIntProperty("http_connect_retry_times", 3);
}