
org.frameworkset.tran.DestroyPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bboss-datatran-core Show documentation
Show all versions of bboss-datatran-core Show documentation
bboss elasticsearch client with restful and java api without elasticsearch jar dependended.
The newest version!
package org.frameworkset.tran;
/**
* Copyright 2023 bboss
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
*
Description:
*
* Copyright (c) 2023
* @Date 2023/6/29
* @author biaoping.yin
* @version 1.0
*/
public class DestroyPolicy {
/**
* waitTranStopped true 等待同步作业处理完成后停止作业 false 不等待
*/
private boolean waitTranStopped;
/**
* fromScheduleEnd 销毁操作是否来自于自动停止作业操作
*/
private boolean fromScheduleEnd;
/**
* 是否强制关闭,如果是强制关闭,不会等待后续数据处理完毕,直接快速退出处理
*/
private boolean forceStop;
/**
* 异常关闭时设置异常信息
*/
private Throwable throwable;
public boolean isWaitTranStopped() {
return waitTranStopped;
}
public DestroyPolicy setWaitTranStopped(boolean waitTranStopped) {
this.waitTranStopped = waitTranStopped;
return this;
}
public boolean isFromScheduleEnd() {
return fromScheduleEnd;
}
public DestroyPolicy setFromScheduleEnd(boolean fromScheduleEnd) {
this.fromScheduleEnd = fromScheduleEnd;
return this;
}
public boolean isForceStop() {
return forceStop;
}
public DestroyPolicy setForceStop(boolean forceStop) {
this.forceStop = forceStop;
return this;
}
public Throwable getThrowable() {
return throwable;
}
/**
* 异常关闭时设置异常信息
* @param throwable
*/
public void setThrowable(Throwable throwable) {
this.throwable = throwable;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy