|
|
|
@ -35,9 +35,9 @@ public class RandomUtil {
|
|
|
|
|
private ThreadPoolTaskExecutor threadPoolTaskExecutor;
|
|
|
|
|
|
|
|
|
|
//ID缓存有效时间 定时刷新有效期
|
|
|
|
|
private static long CacheTimeout = 60 * 60 * 24;
|
|
|
|
|
private static long CacheTimeout = 60 * 60 * 24 * 1000;
|
|
|
|
|
//30分钟续期一次 如果Redis被清空可以早点续期
|
|
|
|
|
private static long ScheduleTimeout = 60 * 30;
|
|
|
|
|
private static long ScheduleTimeout = 60 * 60 * 1000;
|
|
|
|
|
private static byte WorkerIdBitLength = 16;
|
|
|
|
|
//65535 参数为shot 最大值为Short.MAX_VALUE
|
|
|
|
|
private static int MaxWorkerIdNumberByMode = (1 << WorkerIdBitLength) -1 >Short.MAX_VALUE?Short.MAX_VALUE : (1 << WorkerIdBitLength) -1 ;
|
|
|
|
|