feat(softswitch):REST按状态码重试

yun-zuoyi
汪云昊 4 years ago
parent af4ce0fa32
commit 2443d1d8e6

@ -48,7 +48,7 @@ public class BsSuitCase extends BaseBean {
if(caseTypeId == null) {
return -1;
}
return caseTypeId.intValue();
return caseTypeId;
}
public String getCaseTypeTxt() {
@ -69,7 +69,7 @@ public class BsSuitCase extends BaseBean {
if(suitTypeId == null){
return -1;
}
return suitTypeId.longValue();
return suitTypeId;
}
@Column(name = "SUIT_TYPE_NAME_RDD")
@ -109,7 +109,7 @@ public class BsSuitCase extends BaseBean {
if(isNeedCertification==null){
return CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue();
}
return isNeedCertification.intValue();
return isNeedCertification;
}
@Column(name = "IS_SAVE_EMPTY_MSG")
@ -250,6 +250,22 @@ public class BsSuitCase extends BaseBean {
@ApiParam(value = "绑定业务脚本Code")
private String bindBusiScriptCode;
@Column(name = "IS_SUPPORT_RETRY")
@ApiParam(value = "是否支持重试")
private Integer isSupportRetry;
public int getIsSupportRetryVal() {
return isSupportRetry == null ? CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue() : isSupportRetry;
}
@Column(name = "RETRY_INTERVAL")
@ApiParam(value = "重试间隔s")
private Integer retryInterval;
public int getRetryIntervalVal() {
return isSupportRetry == null ? 10: isSupportRetry;
}
@Transient
@ApiParam(value = "适配器套件明细")
private Object bsSuitCaseDetail;

@ -2,6 +2,7 @@ package cn.estsh.i3plus.pojo.softswitch.bean;
import cn.estsh.i3plus.pojo.base.annotation.AnnoOutputColumn;
import cn.estsh.i3plus.pojo.base.bean.BaseBean;
import cn.estsh.i3plus.pojo.base.enumutil.BlockSoftSwitchEnumUtil;
import cn.estsh.i3plus.pojo.base.enumutil.CommonEnumUtil;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
@ -60,6 +61,16 @@ public class BsSuitCaseREST extends BaseBean {
return isRequestBody == null ? CommonEnumUtil.TRUE_OR_FALSE.FALSE.getValue() : isRequestBody;
}
//CommonEnumUtil.HTTP_METHOD_TYPE
@Column(name = "RETRY_STRATEGY")
@ApiParam(value = "重试策略")
@AnnoOutputColumn(refClass = BlockSoftSwitchEnumUtil.BS_REST_RETRY_STRATEGY.class)
private Integer retryStrategy;
public int getRetryStrategyVal() {
return retryStrategy == null ? BlockSoftSwitchEnumUtil.BS_REST_RETRY_STRATEGY.HTTP_STATUS_CODE.getValue() : retryStrategy;
}
@Transient
@ApiParam(value = "请求头转换")
private List<BsSuitCaseParam> requestHeaderList;

Loading…
Cancel
Save