|
@@ -44,9 +44,6 @@ public class LiteflowConfig {
|
|
// 并行线程执行器class路径
|
|
// 并行线程执行器class路径
|
|
private String threadExecutorClass;
|
|
private String threadExecutorClass;
|
|
|
|
|
|
- // chain线程执行器class路径
|
|
|
|
- private String chainThreadExecutorClass;
|
|
|
|
-
|
|
|
|
// 异步线程最大等待秒数
|
|
// 异步线程最大等待秒数
|
|
@Deprecated
|
|
@Deprecated
|
|
private Integer whenMaxWaitSeconds;
|
|
private Integer whenMaxWaitSeconds;
|
|
@@ -76,12 +73,6 @@ public class LiteflowConfig {
|
|
// 异步线程池最大队列数量
|
|
// 异步线程池最大队列数量
|
|
private Integer whenQueueLimit;
|
|
private Integer whenQueueLimit;
|
|
|
|
|
|
- // chain线程池最大线程数
|
|
|
|
- private Integer chainMaxWorkers;
|
|
|
|
-
|
|
|
|
- // chain线程池最大队列数量
|
|
|
|
- private Integer chainQueueLimit;
|
|
|
|
-
|
|
|
|
// 解析模式,一共有三种,具体看其定义
|
|
// 解析模式,一共有三种,具体看其定义
|
|
private ParseModeEnum parseMode;
|
|
private ParseModeEnum parseMode;
|
|
|
|
|
|
@@ -132,6 +123,15 @@ public class LiteflowConfig {
|
|
//脚本特殊设置选项
|
|
//脚本特殊设置选项
|
|
private Map<String, String> scriptSetting;
|
|
private Map<String, String> scriptSetting;
|
|
|
|
|
|
|
|
+ // chain线程池最大线程数
|
|
|
|
+ private Integer chainMaxWorkers;
|
|
|
|
+
|
|
|
|
+ // chain线程池最大队列数量
|
|
|
|
+ private Integer chainQueueLimit;
|
|
|
|
+
|
|
|
|
+ // chain线程执行器class路径
|
|
|
|
+ private String chainThreadExecutorClass;
|
|
|
|
+
|
|
// chain线程池是否隔离
|
|
// chain线程池是否隔离
|
|
// 每一个chain里的when和异步循环合并起来都用单独的线程池。也就是说定义了多少个chain,就有多少个线程池
|
|
// 每一个chain里的when和异步循环合并起来都用单独的线程池。也就是说定义了多少个chain,就有多少个线程池
|
|
private Boolean chainThreadPoolIsolate;
|
|
private Boolean chainThreadPoolIsolate;
|
|
@@ -256,6 +256,7 @@ public class LiteflowConfig {
|
|
public void setWhenMaxWorkers(Integer whenMaxWorkers) {
|
|
public void setWhenMaxWorkers(Integer whenMaxWorkers) {
|
|
this.whenMaxWorkers = whenMaxWorkers;
|
|
this.whenMaxWorkers = whenMaxWorkers;
|
|
}
|
|
}
|
|
|
|
+
|
|
public Integer getWhenQueueLimit() {
|
|
public Integer getWhenQueueLimit() {
|
|
if (ObjectUtil.isNull(whenQueueLimit)) {
|
|
if (ObjectUtil.isNull(whenQueueLimit)) {
|
|
return 512;
|
|
return 512;
|
|
@@ -323,18 +324,6 @@ public class LiteflowConfig {
|
|
this.threadExecutorClass = threadExecutorClass;
|
|
this.threadExecutorClass = threadExecutorClass;
|
|
}
|
|
}
|
|
|
|
|
|
- public String getChainThreadExecutorClass() {
|
|
|
|
- if (StrUtil.isBlank(chainThreadExecutorClass)) {
|
|
|
|
- return "com.yomahub.liteflow.thread.LiteFlowDefaultChainExecutorBuilder";
|
|
|
|
- } else {
|
|
|
|
- return chainThreadExecutorClass;
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public void setChainThreadExecutorClass(String chainThreadExecutorClass) {
|
|
|
|
- this.chainThreadExecutorClass = chainThreadExecutorClass;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public String getNodeExecutorClass() {
|
|
public String getNodeExecutorClass() {
|
|
if (StrUtil.isBlank(nodeExecutorClass)) {
|
|
if (StrUtil.isBlank(nodeExecutorClass)) {
|
|
return "com.yomahub.liteflow.flow.executor.DefaultNodeExecutor";
|
|
return "com.yomahub.liteflow.flow.executor.DefaultNodeExecutor";
|
|
@@ -570,4 +559,15 @@ public class LiteflowConfig {
|
|
this.chainQueueLimit = chainQueueLimit;
|
|
this.chainQueueLimit = chainQueueLimit;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ public String getChainThreadExecutorClass() {
|
|
|
|
+ if (StrUtil.isBlank(chainThreadExecutorClass)) {
|
|
|
|
+ return "com.yomahub.liteflow.thread.LiteFlowDefaultChainExecutorBuilder";
|
|
|
|
+ } else {
|
|
|
|
+ return chainThreadExecutorClass;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public void setChainThreadExecutorClass(String chainThreadExecutorClass) {
|
|
|
|
+ this.chainThreadExecutorClass = chainThreadExecutorClass;
|
|
|
|
+ }
|
|
}
|
|
}
|