优化线程
This commit is contained in:
parent
ee2d627608
commit
c55b7ad024
@ -1,5 +1,6 @@
|
||||
package com.imdroid.sideslope.bd;
|
||||
|
||||
import com.imdroid.common.util.ThreadManager;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.core.env.Environment;
|
||||
@ -24,7 +25,7 @@ public class WarningLogExecutor {
|
||||
private final ExecutorService executor;
|
||||
|
||||
public WarningLogExecutor() {
|
||||
this.executor = Executors.newFixedThreadPool(4);
|
||||
this.executor = ThreadManager.getFixedThreadPool();
|
||||
}
|
||||
|
||||
public void generateWarningLogs(String keyword) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user