Merge pull request #476 from mabaiwan/develop

Subscription callback thread pool parameter changes
pull/483/head
小马哥 2 years ago committed by GitHub
commit 8de3400597
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -175,12 +175,11 @@ public final class DynamicThreadPoolPostProcessor implements BeanPostProcessor {
}
private final ExecutorService configRefreshExecutorService = ThreadPoolBuilder.builder()
.corePoolSize(2)
.maxPoolNum(4)
.corePoolSize(1)
.maxPoolNum(2)
.keepAliveTime(2000)
.timeUnit(TimeUnit.MILLISECONDS)
.workQueue(QueueTypeEnum.ARRAY_BLOCKING_QUEUE)
.capacity(1024)
.workQueue(QueueTypeEnum.SYNCHRONOUS_QUEUE)
.allowCoreThreadTimeOut(true)
.threadFactory("client.dynamic.threadPool.change.config")
.rejected(new ThreadPoolExecutor.AbortPolicy())

Loading…
Cancel
Save