fix(thread): 修复SpringContext重启后,三个单例Thread没有冲洗启动的问题

Spring Context重启时,调用了stop()方法,将标志位toStop设为true了。由于三个Thread都是单例模式,Spring
Context重启时,不会重新实例化三个Thread,导致标志位toStop 一直为true。

Closes #2874
3.4.1-release
hashmaparraylist 3 years ago committed by Qu Sheng
parent 6effc8b98f
commit 99ce81ed51

@ -35,6 +35,7 @@ public class ExecutorRegistryThread {
return;
}
toStop = false;
registryThread = new Thread(new Runnable() {
@Override
public void run() {

@ -34,6 +34,7 @@ public class JobLogFileCleanThread {
return;
}
toStop = false;
localThread = new Thread(new Runnable() {
@Override
public void run() {

@ -54,6 +54,7 @@ public class TriggerCallbackThread {
return;
}
toStop = false;
// callback
triggerCallbackThread = new Thread(new Runnable() {

Loading…
Cancel
Save