更新报警频率
This commit is contained in:
@@ -22,13 +22,13 @@ import java.util.concurrent.atomic.AtomicLong;
|
|||||||
public class Utility {
|
public class Utility {
|
||||||
private static Map<String, IMExceptionEvent> exceptionEventHashMap = new ConcurrentHashMap<>();
|
private static Map<String, IMExceptionEvent> exceptionEventHashMap = new ConcurrentHashMap<>();
|
||||||
static AtomicLong SendExceptionExpireTime = new AtomicLong(0);
|
static AtomicLong SendExceptionExpireTime = new AtomicLong(0);
|
||||||
static int SendExceptionDuration = 60000;
|
static int SendExceptionDuration = 180000;
|
||||||
static long lastSendTime = System.currentTimeMillis();
|
static long lastSendTime = System.currentTimeMillis();
|
||||||
static {
|
static {
|
||||||
new Thread(()->{
|
new Thread(()->{
|
||||||
while (true) {
|
while (true) {
|
||||||
try {
|
try {
|
||||||
Thread.sleep(10 * 1000);
|
Thread.sleep(60 * 1000);
|
||||||
sendExceptionEvent();
|
sendExceptionEvent();
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user