public abstract class AbstractTaskState extends BaseState implements TaskState
| 限定符和类型 | 类和说明 |
|---|---|
static class |
AbstractTaskState.ExceptionMatchImpl |
static class |
AbstractTaskState.RetryImpl |
TaskState.ExceptionMatch, TaskState.Retry, TaskState.StatusMatch| 构造器和说明 |
|---|
AbstractTaskState() |
| 限定符和类型 | 方法和说明 |
|---|---|
List<TaskState.ExceptionMatch> |
getCatches()
exception handling strategy
|
String |
getCompensateState()
get compensate state
|
List<Object> |
getInput() |
List<Object> |
getInputExpressions() |
Map<String,Object> |
getOutput() |
Map<String,Object> |
getOutputExpressions() |
List<TaskState.Retry> |
getRetry()
retry strategy
|
Map<String,String> |
getStatus()
Execution state determination rule
|
boolean |
isForCompensation()
Is this state is used to compensate an other state, default false
|
boolean |
isForUpdate()
Is this state will update data?
|
boolean |
isPersist() |
void |
setCatches(List<TaskState.ExceptionMatch> catches) |
void |
setCompensateState(String compensateState) |
void |
setForCompensation(boolean isForCompensation) |
void |
setForUpdate(boolean isForUpdate) |
void |
setInput(List<Object> input) |
void |
setInputExpressions(List<Object> inputExpressions) |
void |
setOutput(Map<String,Object> output) |
void |
setOutputExpressions(Map<String,Object> outputExpressions) |
void |
setPersist(boolean persist) |
void |
setRetry(List<TaskState.Retry> retry) |
void |
setStatus(Map<String,String> status) |
getComment, getExtensions, getName, getNext, getStateMachine, getType, setComment, setExtensions, setName, setNext, setStateMachine, setTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComment, getExtensions, getName, getNext, getStateMachine, getTypepublic String getCompensateState()
TaskStategetCompensateState 在接口中 TaskStatepublic void setCompensateState(String compensateState)
public boolean isForCompensation()
TaskStateisForCompensation 在接口中 TaskStatepublic void setForCompensation(boolean isForCompensation)
public boolean isForUpdate()
TaskStateisForUpdate 在接口中 TaskStatepublic void setForUpdate(boolean isForUpdate)
public List<TaskState.Retry> getRetry()
TaskStatepublic void setRetry(List<TaskState.Retry> retry)
public List<TaskState.ExceptionMatch> getCatches()
TaskStategetCatches 在接口中 TaskStatepublic void setCatches(List<TaskState.ExceptionMatch> catches)
public boolean isPersist()
public void setPersist(boolean persist)
public Map<String,String> getStatus()
TaskStateCopyright © 2020 Seata. All rights reserved.