抽取公共方法,重构代码逻辑

This commit is contained in:
wanglihui
2020-07-08 19:44:46 +08:00
parent 78664828e1
commit 0e926aa7d0
25 changed files with 911 additions and 1052 deletions

View File

@@ -32,7 +32,7 @@ public class ExecutorThreadPool {
pool.execute(command);
}
public static void awaitThreadTask(){
public void awaitThreadTask(){
try {
while (!pool.awaitTermination(ApplicationConfig.THREAD_AWAIT_TERMINATION_TIME, TimeUnit.SECONDS)) {
LOG.warn("线程池没有关闭");
@@ -42,7 +42,7 @@ public class ExecutorThreadPool {
}
}
public static void shutdown(){
public void shutdown(){
pool.shutdown();
}