|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.step.builder.StepBuilderHelper<AbstractTaskletStepBuilder<B>>
org.springframework.batch.core.step.builder.AbstractTaskletStepBuilder<B>
B - the type of builder representedpublic abstract class AbstractTaskletStepBuilder<B extends AbstractTaskletStepBuilder<B>>
Base class for step builders that want to build a TaskletStep. Handles common concerns across all tasklet
step variants, which are mostly to do with the type of tasklet they carry.
| 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.StepBuilderHelper |
|---|
logger |
| Constructor Summary | |
|---|---|
AbstractTaskletStepBuilder(StepBuilderHelper<?> parent)
|
|
| Method Summary | |
|---|---|
TaskletStep |
build()
Build the step from the components collected by the fluent setters. |
protected boolean |
concurrent()
Convenience method for subclasses to determine if the step is concurrent. |
protected abstract Tasklet |
createTasklet()
|
AbstractTaskletStepBuilder<B> |
exceptionHandler(ExceptionHandler exceptionHandler)
Sets the exception handler to use in the case of tasklet failures. |
protected ExceptionHandler |
getExceptionHandler()
Convenience method for subclasses to access the exception handler that was injected by user. |
protected RepeatOperations |
getStepOperations()
Convenience method for subclasses to access the step operations that were injected by user. |
AbstractTaskletStepBuilder<B> |
listener(ChunkListener listener)
Register a chunk listener. |
AbstractTaskletStepBuilder<B> |
stepOperations(RepeatOperations repeatTemplate)
Sets the repeat template used for iterating the tasklet execution. |
AbstractTaskletStepBuilder<B> |
stream(ItemStream stream)
Register a stream for callbacks that manage restart data. |
AbstractTaskletStepBuilder<B> |
taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
Provide a task executor to use when executing the tasklet. |
AbstractTaskletStepBuilder<B> |
throttleLimit(int throttleLimit)
In the case of an asynchronous taskExecutor(TaskExecutor) the number of concurrent tasklet executions
can be throttled (beyond any throttling provided by a thread pool). |
AbstractTaskletStepBuilder<B> |
transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
Sets the transaction attributes for the tasklet execution. |
| Methods inherited from class org.springframework.batch.core.step.builder.StepBuilderHelper |
|---|
allowStartIfComplete, enhance, getJobRepository, getName, getTransactionManager, isAllowStartIfComplete, listener, repository, startLimit, transactionManager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractTaskletStepBuilder(StepBuilderHelper<?> parent)
| Method Detail |
|---|
protected abstract Tasklet createTasklet()
public TaskletStep build()
StepBuilderHelper.enhance(Step) and
then to createTasklet() in subclasses to create the actual tasklet.
public AbstractTaskletStepBuilder<B> listener(ChunkListener listener)
listener - the listener to register
public AbstractTaskletStepBuilder<B> stream(ItemStream stream)
stream - the stream to register
public AbstractTaskletStepBuilder<B> taskExecutor(org.springframework.core.task.TaskExecutor taskExecutor)
taskExecutor - the task executor to register
public AbstractTaskletStepBuilder<B> throttleLimit(int throttleLimit)
taskExecutor(TaskExecutor) the number of concurrent tasklet executions
can be throttled (beyond any throttling provided by a thread pool). The throttle limit should be less than the
data source pool size used in the job repository for this step.
throttleLimit - maximium number of concurrent tasklet executions allowed
public AbstractTaskletStepBuilder<B> exceptionHandler(ExceptionHandler exceptionHandler)
exceptionHandler - the exception handler
public AbstractTaskletStepBuilder<B> stepOperations(RepeatOperations repeatTemplate)
repeatTemplate - a repeat template with rules for iterating
public AbstractTaskletStepBuilder<B> transactionAttribute(org.springframework.transaction.interceptor.TransactionAttribute transactionAttribute)
transactionAttribute - a transaction attribute set
protected RepeatOperations getStepOperations()
protected ExceptionHandler getExceptionHandler()
protected boolean concurrent()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||