public class SimpleJobBuilder extends JobBuilderHelper<SimpleJobBuilder>
JobBuilderHelper.CommonJobProperties
logger
Constructor and Description |
---|
SimpleJobBuilder(JobBuilderHelper<?> parent)
Create a new builder initialized with any properties in the parent.
|
Modifier and Type | Method and Description |
---|---|
Job |
build() |
JobFlowBuilder |
next(JobExecutionDecider decider)
Continue with this decider if the previous step was successful.
|
SimpleJobBuilder |
next(Step step)
Continue or end a job with this step if the previous step was successful.
|
FlowBuilder.TransitionBuilder<FlowJobBuilder> |
on(java.lang.String pattern)
Branch into a flow conditional on the outcome of the current step.
|
FlowBuilder.SplitBuilder<FlowJobBuilder> |
split(org.springframework.core.task.TaskExecutor executor) |
JobFlowBuilder |
start(JobExecutionDecider decider)
Start with this decider.
|
SimpleJobBuilder |
start(Step step)
Start the job with this step.
|
enhance, getJobRepository, getName, incrementer, isRestartable, listener, listener, preventRestart, repository, validator
public SimpleJobBuilder(JobBuilderHelper<?> parent)
parent
- the parent to usepublic Job build()
public SimpleJobBuilder start(Step step)
step
- a step to start withpublic FlowBuilder.TransitionBuilder<FlowJobBuilder> on(java.lang.String pattern)
pattern
- a pattern for the exit status of the current steppublic JobFlowBuilder start(JobExecutionDecider decider)
decider
- a decider to execute firstpublic JobFlowBuilder next(JobExecutionDecider decider)
decider
- a decider to execute nextpublic SimpleJobBuilder next(Step step)
step
- a step to execute nextpublic FlowBuilder.SplitBuilder<FlowJobBuilder> split(org.springframework.core.task.TaskExecutor executor)
executor
- instance of TaskExecutor
to be used.