Files
rocketmq/example
zhenheandwuzh 3a2b172660 [ISSUE #3006]Replace ScheduledExecutorService instead of Timer to avoid affecting other tasks during exception (#3001)
* 采用ScheduledExecutorService替代Timer,避免异常捕获时影响其他任务

多线程并行处理定时任务时,Timer运行多个TimeTask时,只要其中之一没有捕获抛出的异常,其它任务便会自动终止运行,使用ScheduledExecutorService则没有这个问题。

* optimize imports

* Add @Override annotation

* Revert "Add @Override annotation"

This reverts commit 3ddccd8802.

Co-authored-by: wuzh <wuzh@bosera.com>
2021-08-04 13:59:25 +08:00
..