报工问题修改

tags/yfai-pcn-ext-v1.0
微笑着面对明天 10 months ago
parent ba9cdcf798
commit 2de392bac2

@ -25,7 +25,7 @@ import java.util.concurrent.TimeUnit;
@Slf4j
public class PcnMqttCallback implements MqttCallbackExtended {
private static ExecutorService executorService = new ThreadPoolExecutor(1000, 1000,
private static ExecutorService executorService = new ThreadPoolExecutor(200, 200,
0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<>(10000), r -> {
Thread thread = new Thread(r);
@ -33,7 +33,7 @@ public class PcnMqttCallback implements MqttCallbackExtended {
return thread;
},new ThreadPoolExecutor.DiscardPolicy());
private static ExecutorService executorServiceTwo = new ThreadPoolExecutor(1000,1000,
private static ExecutorService executorServiceTwo = new ThreadPoolExecutor(200,200,
0L, TimeUnit.MILLISECONDS,
new LinkedBlockingQueue<>(10000), r -> {
Thread thread = new Thread(r);

Loading…
Cancel
Save