为配置下发添加分布式锁,确保maat_version一致

This commit is contained in:
renkaige
2018-11-26 15:10:32 +08:00
parent 6c6dfbcf7c
commit b7f46e3293
6 changed files with 311 additions and 156 deletions

View File

@@ -211,12 +211,22 @@ public final class Constants {
*是否使用Minio
*/
public static final Boolean IS_USE_MINIO = Configurations.getBooleanProperty("isUseMinio", true);
public static final int MAXTHREADNUM = Configurations.getIntProperty("maxThreadNum", 10);
public static final int EVERTHREADNUM = Configurations.getIntProperty("everThreadNum", 10000);
/**
* 保存请求内容时最大的资源列表size
*/
public static final int MAX_LIST_SIZE = Configurations.getIntProperty("maxListSize", 10);
/**
* redis分布式锁超时时间,默认五分钟,3000秒
*/
public static final Long REDISLOCKTIME=Configurations.getLongProperty("redisLockTime", 3000);
/**
* 获取redis分布式锁失败后的尝试获取锁的次数,每次失败暂停一秒钟后再次尝试
*/
public static final Long REDISRETRYNUM=Configurations.getLongProperty("redisRetryNum", 5);
}