[Change] RandomIntervalSendTimer 将随机间隔发送器的Timer设为daemon thread;

This commit is contained in:
LamGC 2020-06-03 19:37:45 +08:00
parent ef70ac77cb
commit eb2de09859

View File

@ -13,7 +13,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
*/ */
public class RandomIntervalSendTimer extends TimerTask { public class RandomIntervalSendTimer extends TimerTask {
private final static Timer timer = new Timer("Thread-RIST"); private final static Timer timer = new Timer("Thread-RIST", true);
private final static Logger log = LoggerFactory.getLogger(RandomIntervalSendTimer.class.getName()); private final static Logger log = LoggerFactory.getLogger(RandomIntervalSendTimer.class.getName());
private final static Map<Long, RandomIntervalSendTimer> timerMap = new HashMap<>(); private final static Map<Long, RandomIntervalSendTimer> timerMap = new HashMap<>();