From 5f9ba8d12eafea9d0bbc97d89a5f2841f06ff40c Mon Sep 17 00:00:00 2001 From: weihu Date: Sun, 2 Oct 2022 15:40:40 +0800 Subject: [PATCH] update method name --- .../cn/hippo4j/core/executor/support/ThreadPoolBuilder.java | 4 ++-- .../hippo4j/example/config/etcd/config/ThreadPoolConfig.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hippo4j-core/src/main/java/cn/hippo4j/core/executor/support/ThreadPoolBuilder.java b/hippo4j-core/src/main/java/cn/hippo4j/core/executor/support/ThreadPoolBuilder.java index 677e8ea0..91ff100a 100644 --- a/hippo4j-core/src/main/java/cn/hippo4j/core/executor/support/ThreadPoolBuilder.java +++ b/hippo4j-core/src/main/java/cn/hippo4j/core/executor/support/ThreadPoolBuilder.java @@ -227,11 +227,11 @@ public class ThreadPoolBuilder implements Builder { } /** - * Create thread pool by thread pool id + * Create dynamic thread pool by thread pool id * @param threadPoolId threadPoolId * @return ThreadPoolExecutor */ - public static ThreadPoolExecutor builderById(String threadPoolId) { + public static ThreadPoolExecutor builderDynamicPoolById(String threadPoolId) { return ThreadPoolBuilder.builder() .threadFactory(threadPoolId) .threadPoolId(threadPoolId) diff --git a/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/java/cn/hippo4j/example/config/etcd/config/ThreadPoolConfig.java b/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/java/cn/hippo4j/example/config/etcd/config/ThreadPoolConfig.java index c6cf9c50..f8fcf79a 100644 --- a/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/java/cn/hippo4j/example/config/etcd/config/ThreadPoolConfig.java +++ b/hippo4j-example/hippo4j-config-etcd-spring-boot-starter-example/src/main/java/cn/hippo4j/example/config/etcd/config/ThreadPoolConfig.java @@ -37,6 +37,6 @@ public class ThreadPoolConfig { @DynamicThreadPool public ThreadPoolExecutor messageConsumeDynamicExecutor() { String threadPoolId = "message-consume"; - return ThreadPoolBuilder.builderById(threadPoolId); + return ThreadPoolBuilder.builderDynamicPoolById(threadPoolId); } }