com.alibaba.dts.common.domain.result.ProcessResult Maven / Gradle / Ivy
package com.alibaba.dts.common.domain.result;
/**
* 处理结果
* @author tianyao.myc
*
*/
public class ProcessResult {
/** 是否执行成功 */
private boolean success = true;
/** 重试次数 */
private int retryCount;
/** 长时间周期任务触发间隔时间(毫秒) */
private long sleepTime=100;
@SuppressWarnings("unused")
public ProcessResult() {
}
public ProcessResult(boolean success) {
this.success = success;
}
public ProcessResult(boolean success, int retryCount) {
this.success = success;
this.retryCount = retryCount;
}
public ProcessResult(boolean success, long sleepTime) {
this.success = success;
this.sleepTime = sleepTime;
}
public boolean isSuccess() {
return success;
}
public void setSuccess(boolean success) {
this.success = success;
}
public int getRetryCount() {
return retryCount;
}
public void setRetryCount(int retryCount) {
this.retryCount = retryCount;
}
public long getSleepTime() {
return sleepTime;
}
public void setSleepTime(long sleepTime) {
this.sleepTime = sleepTime;
}
@Override
public String toString() {
return "ProcessResult{" +
"success=" + success +
", retryCount=" + retryCount +
", sleepTime=" + sleepTime +
'}';
}
}