将max_allow_packet参数提取到配置文件中,不用每次从数据库中读取

This commit is contained in:
wangxin
2018-11-18 18:28:53 +08:00
parent 97882ad05f
commit 21dcd430e3
5 changed files with 20 additions and 16 deletions

View File

@@ -734,4 +734,6 @@ public final class Constants {
public static final Integer MAAT_JSON_SEND_SIZE=Configurations.getIntProperty("maat_json_send_size", 1000);
public static final Integer MULITY_THREAD_SIZE=Configurations.getIntProperty("mulity_thread_size", 5);
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);
}