mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 13:27:55 +08:00
【fix】 线程使用完后使用主线程执行 ThreadPoolExecutor.AbortPolicy()
This commit is contained in:
parent
b9d75715de
commit
9bf26e99d0
@ -19,7 +19,8 @@ public class ChannelFlowAdapter {
|
||||
|
||||
ThreadPoolExecutor CHANNEL_FLOW_ADAPTER_EXECUTOR =
|
||||
new ThreadPoolExecutor(20, 200, 3L, TimeUnit.MINUTES,
|
||||
new LinkedBlockingDeque<>(500));
|
||||
new LinkedBlockingDeque<>(500),new ThreadPoolExecutor.AbortPolicy());
|
||||
// 线程使用完后使用主线程执行
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user