diff --git a/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java b/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java index c6e8a5f4..a1ed280b 100644 --- a/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java +++ b/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolQueryReqDTO.java @@ -12,12 +12,19 @@ import lombok.Data; @Data public class ThreadPoolQueryReqDTO extends Page { + /** + * 命名空间 + */ private String namespace; + /** + * 项目 ID + */ private String itemId; + /** + * 线程池 ID + */ private String tpId; - private String tpName; - } diff --git a/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolRespDTO.java b/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolRespDTO.java index c20a96d3..628d1d4f 100644 --- a/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolRespDTO.java +++ b/config/src/main/java/io/dynamic/threadpool/config/model/biz/threadpool/ThreadPoolRespDTO.java @@ -2,6 +2,8 @@ package io.dynamic.threadpool.config.model.biz.threadpool; import lombok.Data; +import java.util.Date; + /** * Thread Pool Resp DTO. * @@ -70,4 +72,14 @@ public class ThreadPoolRespDTO { * 活跃度告警 */ private Integer livenessAlarm; + + /** + * 创建时间 + */ + private Date gmtCreate; + + /** + * 修改时间 + */ + private Date gmtModified; } diff --git a/dynamic-threadpool-spring-boot-starter/src/main/java/io/dynamic/threadpool/starter/toolkit/thread/ThreadPoolBuilder.java b/dynamic-threadpool-spring-boot-starter/src/main/java/io/dynamic/threadpool/starter/toolkit/thread/ThreadPoolBuilder.java index f1f7bf81..28cd9526 100644 --- a/dynamic-threadpool-spring-boot-starter/src/main/java/io/dynamic/threadpool/starter/toolkit/thread/ThreadPoolBuilder.java +++ b/dynamic-threadpool-spring-boot-starter/src/main/java/io/dynamic/threadpool/starter/toolkit/thread/ThreadPoolBuilder.java @@ -182,7 +182,7 @@ public class ThreadPoolBuilder implements Builder { * @param builder * @return */ - public static ThreadPoolExecutor buildPool(ThreadPoolBuilder builder) { + private static ThreadPoolExecutor buildPool(ThreadPoolBuilder builder) { return AbstractBuildThreadPoolTemplate.buildPool(buildInitParam(builder)); } @@ -192,7 +192,7 @@ public class ThreadPoolBuilder implements Builder { * @param builder * @return */ - public static ThreadPoolExecutor buildFastPool(ThreadPoolBuilder builder) { + private static ThreadPoolExecutor buildFastPool(ThreadPoolBuilder builder) { return AbstractBuildThreadPoolTemplate.buildFastPool(buildInitParam(builder)); }