errorResume变量改成ignoreError

This commit is contained in:
everywhere.z
2023-01-17 11:10:08 +08:00
parent ed7f29abbb
commit 0ccb363044
2 changed files with 8 additions and 8 deletions

View File

@@ -20,7 +20,7 @@ public class IgnoreErrorOperator extends BaseOperator<WhenCondition> {
WhenCondition condition = OperatorHelper.convert(objects[0], WhenCondition.class);
Boolean ignoreError = OperatorHelper.convert(objects[1], Boolean.class);
condition.setErrorResume(ignoreError);
condition.setIgnoreError(ignoreError);
return condition;
}

View File

@@ -37,7 +37,7 @@ public class WhenCondition extends Condition {
private final Logger LOG = LoggerFactory.getLogger(this.getClass());
//只在when类型下有效以区分当when调用链调用失败时是否继续往下执行 默认false不继续执行
private boolean errorResume = false;
private boolean ignoreError = false;
//只在when类型下有效用于不同node进行同组合并相同的组会进行合并不同的组不会进行合并
//此属性已弃用
@@ -150,8 +150,8 @@ public class WhenCondition extends Condition {
timeOutWhenFutureObjList.forEach(whenFutureObj ->
LOG.warn("requestId [{}] executing thread has reached max-wait-seconds, thread canceled.Execute-item: [{}]", slot.getRequestId(), whenFutureObj.getExecutorName()));
//当配置了errorResume = false出现interrupted或者!f.get()的情况将抛出WhenExecuteException
if (!this.isErrorResume()) {
//当配置了ignoreError = false出现interrupted或者!f.get()的情况将抛出WhenExecuteException
if (!this.isIgnoreError()) {
if (interrupted[0]) {
throw new WhenExecuteException(StrUtil.format("requestId [{}] when execute interrupted. errorResume [false].", slot.getRequestId()));
}
@@ -169,12 +169,12 @@ public class WhenCondition extends Condition {
}
}
public boolean isErrorResume() {
return errorResume;
public boolean isIgnoreError() {
return ignoreError;
}
public void setErrorResume(boolean errorResume) {
this.errorResume = errorResume;
public void setIgnoreError(boolean ignoreError) {
this.ignoreError = ignoreError;
}
public String getGroup() {