Class JobBuilder
java.lang.Object
org.springframework.batch.core.job.builder.JobBuilderHelper<JobBuilder>
org.springframework.batch.core.job.builder.JobBuilder
Convenience for building jobs of various kinds.
- Since:
- 2.2
- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.batch.core.job.builder.JobBuilderHelper
JobBuilderHelper.CommonJobProperties
-
Field Summary
Fields inherited from class org.springframework.batch.core.job.builder.JobBuilderHelper
logger
-
Constructor Summary
ConstructorDescriptionJobBuilder
(String name) Deprecated, for removal: This API element is subject to removal in a future version.JobBuilder
(String name, JobRepository jobRepository) Create a new builder for a job with the given name. -
Method Summary
Modifier and TypeMethodDescriptionCreate a new job builder that will execute a step or sequence of steps.Create a new job builder that will execute a flow.start
(JobExecutionDecider decider) Create a new job builder that will start with a decider.Create a new job builder that will execute a step or sequence of steps.Methods inherited from class org.springframework.batch.core.job.builder.JobBuilderHelper
enhance, getJobRepository, getName, incrementer, isRestartable, listener, listener, meterRegistry, observationConvention, observationRegistry, preventRestart, repository, validator
-
Constructor Details
-
JobBuilder
Deprecated, for removal: This API element is subject to removal in a future version.Create a new builder for a job with the given name.- Parameters:
name
- the name of the job
-
JobBuilder
Create a new builder for a job with the given name.- Parameters:
name
- the name of the jobjobRepository
- the job repository to which the job should report to- Since:
- 5.0
-
-
Method Details
-
start
Create a new job builder that will execute a step or sequence of steps.- Parameters:
step
- a step to execute- Returns:
- a
SimpleJobBuilder
-
start
Create a new job builder that will execute a flow.- Parameters:
flow
- a flow to execute- Returns:
- a
JobFlowBuilder
-
start
Create a new job builder that will start with a decider.- Parameters:
decider
- a decider to start with- Returns:
- a
JobFlowBuilder
- Since:
- 5.1
-
flow
Create a new job builder that will execute a step or sequence of steps.- Parameters:
step
- a step to execute- Returns:
- a
JobFlowBuilder
-
JobBuilder(String, JobRepository)