ClientUtil中client改为连接池方式

This commit is contained in:
zhangwei
2018-11-22 14:52:47 +08:00
parent 2d190ad7f3
commit dd835e21c1
4 changed files with 42 additions and 9 deletions

View File

@@ -736,4 +736,9 @@ public final class Constants {
public static final Integer SAVE_AND_DEL_THREAD_SIZE=Configurations.getIntProperty("save_and_del_thread_size", 5);
public static final Integer MAX_ALLOWED_PACKET=Configurations.getIntProperty("max_allowed_packet", 1048576);
//http client连接池相关参数
public static final Integer HTTP_MAX_CONNECTION=Configurations.getIntProperty("http_max_connection", 1000);
public static final Integer DEFAULT_MAX_PERROUTE=Configurations.getIntProperty("default_max_perroute", 100);
public static final Integer POOLCM_SOCKET_TIMEOUT=Configurations.getIntProperty("poolcm_socket_timeout", 3000);
}