浏览代码

优化配置

AE86 2 年之前
父节点
当前提交
9229e00921
共有 1 个文件被更改,包括 9 次插入1 次删除
  1. 9 1
      dbsyncer-common/src/main/java/org/dbsyncer/common/config/TaskSchedulerConfig.java

+ 9 - 1
dbsyncer-common/src/main/java/org/dbsyncer/common/config/TaskSchedulerConfig.java

@@ -43,7 +43,7 @@ public class TaskSchedulerConfig implements SchedulingConfigurer {
         return scheduler;
     }
 
-    public RejectedExecutionHandler rejectedExecutionHandler() {
+    private RejectedExecutionHandler rejectedExecutionHandler() {
         return (r, executor) -> {
             try {
                 executor.getQueue().put(r);
@@ -52,4 +52,12 @@ public class TaskSchedulerConfig implements SchedulingConfigurer {
             }
         };
     }
+
+    public int getPoolSize() {
+        return poolSize;
+    }
+
+    public void setPoolSize(int poolSize) {
+        this.poolSize = poolSize;
+    }
 }