修改线程池线程数量

This commit is contained in:
wen 2022-02-18 18:13:49 +08:00
parent 2f4cf902b8
commit 9dcc3a0e1b

View File

@ -478,7 +478,7 @@ public class XhpcChargingPileServiceImpl extends BaseService implements IXhpcCha
//开启多个线程并行执行操作
//generate qrcode for every terminal
ThreadPoolExecutor executor =
new ThreadPoolExecutor(5, 20, 200, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(5));
new ThreadPoolExecutor(5, 40, 200, TimeUnit.MILLISECONDS, new ArrayBlockingQueue<Runnable>(40));
for (XhpcTerminal xhpcTerminal : xhpcTerminalList) {
executor.execute(() -> {
//获取场站名称