update method name

pull/765/head
weihu 3 years ago
parent ce993a96cd
commit 2bcf42a24b

@ -231,7 +231,7 @@ public class ThreadPoolBuilder implements Builder<ThreadPoolExecutor> {
* @param threadPoolId threadPoolId * @param threadPoolId threadPoolId
* @return ThreadPoolExecutor * @return ThreadPoolExecutor
*/ */
public static ThreadPoolExecutor builderDynamicPoolById(String threadPoolId) { public static ThreadPoolExecutor buildDynamicPoolById(String threadPoolId) {
return ThreadPoolBuilder.builder() return ThreadPoolBuilder.builder()
.threadFactory(threadPoolId) .threadFactory(threadPoolId)
.threadPoolId(threadPoolId) .threadPoolId(threadPoolId)

@ -35,6 +35,6 @@ public class ThreadPoolConfig {
@SpringDynamicThreadPool @SpringDynamicThreadPool
public ThreadPoolExecutor messageConsumeDynamicExecutor() { public ThreadPoolExecutor messageConsumeDynamicExecutor() {
String threadPoolId = "message-consume"; String threadPoolId = "message-consume";
return ThreadPoolBuilder.builderDynamicPoolById(threadPoolId); return ThreadPoolBuilder.buildDynamicPoolById(threadPoolId);
} }
} }

@ -65,7 +65,7 @@ public class DynamicThreadPoolConfig {
*/ */
@SpringDynamicThreadPool @SpringDynamicThreadPool
public ThreadPoolExecutor messageProduceDynamicThreadPool() { public ThreadPoolExecutor messageProduceDynamicThreadPool() {
return ThreadPoolBuilder.builderDynamicPoolById(MESSAGE_PRODUCE); return ThreadPoolBuilder.buildDynamicPoolById(MESSAGE_PRODUCE);
} }
/** /**

Loading…
Cancel
Save