Class TaskletStepBuilder
java.lang.Object
org.springframework.batch.core.step.builder.StepBuilderHelper<B>
org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder<TaskletStepBuilder>
org.springframework.batch.core.step.builder.TaskletStepBuilder
Builder for tasklet step based on a custom tasklet (not item oriented).
- Since:
- 2.2
- Author:
- Dave Syer, Mahmoud Ben Hassine
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
StepBuilderHelper.CommonStepProperties
-
Field Summary
Fields inherited from class org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder
chunkListeners
Fields inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
logger, properties
-
Constructor Summary
ConstructorsConstructorDescriptionTaskletStepBuilder
(StepBuilderHelper<?> parent) Create a new builder initialized with any properties in the parent. -
Method Summary
Modifier and TypeMethodDescriptionprotected Tasklet
protected TaskletStepBuilder
self()
Deprecated.tasklet
(Tasklet tasklet, org.springframework.transaction.PlatformTransactionManager transactionManager) Methods inherited from class org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder
build, concurrent, exceptionHandler, getExceptionHandler, getStepOperations, getStreams, getTaskExecutor, getThrottleLimit, getTransactionAttribute, getTransactionManager, listener, listener, registerStepListenerAsChunkListener, stepOperations, stream, taskExecutor, throttleLimit, transactionAttribute, transactionManager
Methods inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper
allowStartIfComplete, enhance, getJobRepository, getName, isAllowStartIfComplete, listener, meterRegistry, observationRegistry, repository, startLimit
-
Constructor Details
-
TaskletStepBuilder
Create a new builder initialized with any properties in the parent. The parent is copied, so it can be re-used.- Parameters:
parent
- a parent helper containing common step properties
-
-
Method Details
-
tasklet
Deprecated.- Parameters:
tasklet
- the tasklet to use- Returns:
- this for fluent chaining
-
tasklet
public TaskletStepBuilder tasklet(Tasklet tasklet, org.springframework.transaction.PlatformTransactionManager transactionManager) - Parameters:
tasklet
- the tasklet to use- Returns:
- this for fluent chaining
- Since:
- 5.0
-
self
- Specified by:
self
in classStepBuilderHelper<TaskletStepBuilder>
-
createTasklet
- Specified by:
createTasklet
in classAbstractTaskletStepBuilder<TaskletStepBuilder>
-
tasklet(Tasklet, PlatformTransactionManager)