修改线程池线程数量
This commit is contained in:
parent
2f4cf902b8
commit
9dcc3a0e1b
@ -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(() -> {
|
||||
//获取场站名称:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user