更新报警频率

This commit is contained in:
heavyrain2012
2020-12-12 16:30:57 +08:00
parent 31d69e78cf
commit 11b0e6454c
@@ -22,13 +22,13 @@ import java.util.concurrent.atomic.AtomicLong;
public class Utility {
private static Map<String, IMExceptionEvent> exceptionEventHashMap = new ConcurrentHashMap<>();
static AtomicLong SendExceptionExpireTime = new AtomicLong(0);
static int SendExceptionDuration = 60000;
static int SendExceptionDuration = 180000;
static long lastSendTime = System.currentTimeMillis();
static {
new Thread(()->{
while (true) {
try {
Thread.sleep(10 * 1000);
Thread.sleep(60 * 1000);
sendExceptionEvent();
} catch (Exception e) {
e.printStackTrace();