类 JsrStepState
- java.lang.Object
- org.springframework.batch.core.job.flow.support.state.AbstractState
- org.springframework.batch.core.job.flow.support.state.StepState
- org.springframework.batch.core.jsr.job.flow.support.state.JsrStepState
- 所有已实现的接口:
State
,StepHolder
,StepLocator
public class JsrStepState extends StepState
ExtendsStepState
to persist what the last step that was executed was (used in Decisions and restarts).- 从以下版本开始:
- 3.0
- 作者:
- Michael Minella
构造器概要
构造器 构造器 说明 JsrStepState(java.lang.String name, Step step)
JsrStepState(Step step)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 FlowExecutionStatus
handle(FlowExecutor executor)
Handle some business or processing logic and return a status that can be used to drive a flow to the nextState
.从类继承的方法 org.springframework.batch.core.job.flow.support.state.StepState
getStep, getStep, getStepNames, isEndState
从类继承的方法 org.springframework.batch.core.job.flow.support.state.AbstractState
getName, toString
构造器详细资料
JsrStepState
public JsrStepState(Step step)
- 参数:
step
- the step that will be executed
JsrStepState
public JsrStepState(java.lang.String name, Step step)
- 参数:
name
- for the step that will be executedstep
- the step that will be executed
方法详细资料
handle
public FlowExecutionStatus handle(FlowExecutor executor) throws java.lang.Exception
从接口复制的说明:State
Handle some business or processing logic and return a status that can be used to drive a flow to the nextState
. The status can be any string, but special meaning is assigned to the static constants inFlowExecution
. The context can be used by implementations to do whatever they need to do. The same context will be passed to allState
instances, so implementations should be careful that the context is thread-safe, or used in a thread-safe manner.