[ISSUE #3006]Replace ScheduledExecutorService instead of Timer to avoid...
[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 3ddccd88022db33361a2af08b36b0c8f5d963f48.
Co-authored-by: Nwuzh <wuzh@bosera.com>
Showing
想要评论请 注册 或 登录