Browse Source

完善tcp消费

zhc
review512jwy@163.com 1 month ago
parent
commit
8b98cc808c
  1. 6
      src/main/java/com/techsor/datacenter/receiver/listener/RedisStreamConsumer.java

6
src/main/java/com/techsor/datacenter/receiver/listener/RedisStreamConsumer.java

@ -50,11 +50,11 @@ public class RedisStreamConsumer {
private final ExecutorService workerExecutor = private final ExecutorService workerExecutor =
new ThreadPoolExecutor( new ThreadPoolExecutor(
32, 16,
128, 64,
60, 60,
TimeUnit.SECONDS, TimeUnit.SECONDS,
new LinkedBlockingQueue<>(20000), new LinkedBlockingQueue<>(10000),
new ThreadPoolExecutor.CallerRunsPolicy() new ThreadPoolExecutor.CallerRunsPolicy()
); );

Loading…
Cancel
Save