类 FlowBuilder.TransitionBuilder<Q>
- java.lang.Object
- org.springframework.batch.core.job.builder.FlowBuilder.TransitionBuilder<Q>
- 类型参数:
Q
- the result of the parent builder's build()
- 封闭类:
- FlowBuilder<Q>
public static class FlowBuilder.TransitionBuilder<Q> extends java.lang.Object
A builder for transitions within a flow.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 TransitionBuilder(FlowBuilder<Q> parent, java.lang.String pattern)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 FlowBuilder<Q>
end()
Signal the successful end of the flow.FlowBuilder<Q>
end(java.lang.String status)
Signal the end of the flow with the status provided.FlowBuilder<Q>
fail()
Signal the end of the flow with an error condition.FlowBuilder<Q>
stop()
Signal the successful end of the flow.FlowBuilder<Q>
stopAndRestart(Flow flow)
Stop the flow and provide a flow to start with if the flow is restarted.FlowBuilder<Q>
stopAndRestart(JobExecutionDecider decider)
Stop the flow and provide a decider to start with if the flow is restarted.FlowBuilder<Q>
stopAndRestart(Step restart)
Stop the flow and provide a step to start with if the flow is restarted.FlowBuilder<Q>
to(Flow flow)
Specify the next state as a complete flow.FlowBuilder<Q>
to(JobExecutionDecider decider)
Specify the next state as a decision.FlowBuilder<Q>
to(Step step)
Specify the next step.
构造器详细资料
TransitionBuilder
public TransitionBuilder(FlowBuilder<Q> parent, java.lang.String pattern)
方法详细资料
to
public FlowBuilder<Q> to(Step step)
Specify the next step.- 参数:
step
- the next step after this transition- 返回:
- a FlowBuilder
to
public FlowBuilder<Q> to(Flow flow)
Specify the next state as a complete flow.- 参数:
flow
- the next flow after this transition- 返回:
- a FlowBuilder
to
public FlowBuilder<Q> to(JobExecutionDecider decider)
Specify the next state as a decision.- 参数:
decider
- the decider to determine the next step- 返回:
- a FlowBuilder
stop
public FlowBuilder<Q> stop()
Signal the successful end of the flow.- 返回:
- a FlowBuilder
stopAndRestart
public FlowBuilder<Q> stopAndRestart(Flow flow)
Stop the flow and provide a flow to start with if the flow is restarted.- 参数:
flow
- the flow to restart with- 返回:
- a FlowBuilder
stopAndRestart
public FlowBuilder<Q> stopAndRestart(JobExecutionDecider decider)
Stop the flow and provide a decider to start with if the flow is restarted.- 参数:
decider
- a decider to restart with- 返回:
- a FlowBuilder
stopAndRestart
public FlowBuilder<Q> stopAndRestart(Step restart)
Stop the flow and provide a step to start with if the flow is restarted.- 参数:
restart
- the step to restart with- 返回:
- a FlowBuilder
end
public FlowBuilder<Q> end()
Signal the successful end of the flow.- 返回:
- a FlowBuilder
end
public FlowBuilder<Q> end(java.lang.String status)
Signal the end of the flow with the status provided.- 参数:
status
-String
containing the status.- 返回:
- a FlowBuilder
fail
public FlowBuilder<Q> fail()
Signal the end of the flow with an error condition.- 返回:
- a FlowBuilder