mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-22 22:28:10 +08:00
feature #I4ZVCL 执行器response增加future的支持
This commit is contained in:
@@ -50,6 +50,12 @@ public class LiteflowProperty {
|
||||
// 节点执行器class全名
|
||||
private String nodeExecutorClass;
|
||||
|
||||
//FlowExecutor的execute2Future的线程数
|
||||
private int mainExecutorWorks;
|
||||
|
||||
//FlowExecutor的execute2Future的自定义线程池
|
||||
private String mainExecutorClass;
|
||||
|
||||
public boolean isEnable() {
|
||||
return enable;
|
||||
}
|
||||
@@ -153,4 +159,20 @@ public class LiteflowProperty {
|
||||
public void setNodeExecutorClass(String nodeExecutorClass) {
|
||||
this.nodeExecutorClass = nodeExecutorClass;
|
||||
}
|
||||
|
||||
public int getMainExecutorWorks() {
|
||||
return mainExecutorWorks;
|
||||
}
|
||||
|
||||
public void setMainExecutorWorks(int mainExecutorWorks) {
|
||||
this.mainExecutorWorks = mainExecutorWorks;
|
||||
}
|
||||
|
||||
public String getMainExecutorClass() {
|
||||
return mainExecutorClass;
|
||||
}
|
||||
|
||||
public void setMainExecutorClass(String mainExecutorClass) {
|
||||
this.mainExecutorClass = mainExecutorClass;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -42,6 +42,8 @@ public class LiteflowPropertyAutoConfiguration {
|
||||
liteflowConfig.setZkNode(property.getZkNode());
|
||||
liteflowConfig.setPrintBanner(property.isPrintBanner());
|
||||
liteflowConfig.setNodeExecutorClass(property.getNodeExecutorClass());
|
||||
liteflowConfig.setMainExecutorWorks(property.getMainExecutorWorks());
|
||||
liteflowConfig.setMainExecutorClass(property.getMainExecutorClass());
|
||||
return liteflowConfig;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user