类 FlowJobBuilder
- java.lang.Object
- org.springframework.batch.core.job.builder.JobBuilderHelper<FlowJobBuilder>
- org.springframework.batch.core.job.builder.FlowJobBuilder
public class FlowJobBuilder extends JobBuilderHelper<FlowJobBuilder>
A job builder forFlowJob
instances. A flow job delegates processing to a nested flow composed of steps and conditional transitions between steps.- 从以下版本开始:
- 2.2
- 作者:
- Dave Syer
嵌套类概要
从类继承的嵌套类/接口 org.springframework.batch.core.job.builder.JobBuilderHelper
JobBuilderHelper.CommonJobProperties
字段概要
从类继承的字段 org.springframework.batch.core.job.builder.JobBuilderHelper
logger
构造器概要
构造器 构造器 说明 FlowJobBuilder(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Job
build()
Build a job that executes the flow provided, normally composed of other steps.protected FlowJobBuilder
flow(Flow flow)
Provide a single flow to execute as the job.JobFlowBuilder
start(Flow flow)
Start a job with this flow, but expect to transition from there to other flows or steps.JobFlowBuilder
start(Step step)
Start a job with this step, but expect to transition from there to other flows or steps.从类继承的方法 org.springframework.batch.core.job.builder.JobBuilderHelper
enhance, getJobRepository, getName, incrementer, isRestartable, listener, preventRestart, repository, validator
构造器详细资料
FlowJobBuilder
public FlowJobBuilder(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.- 参数:
parent
- a parent helper containing common job properties
方法详细资料
start
public JobFlowBuilder start(Flow flow)
Start a job with this flow, but expect to transition from there to other flows or steps.- 参数:
flow
- the flow to start with- 返回:
- a builder to enable fluent chaining
start
public JobFlowBuilder start(Step step)
Start a job with this step, but expect to transition from there to other flows or steps.- 参数:
step
- the step to start with- 返回:
- a builder to enable fluent chaining
flow
protected FlowJobBuilder flow(Flow flow)
Provide a single flow to execute as the job.- 参数:
flow
- the flow to execute- 返回:
- this for fluent chaining