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