public interface Tasklet
| Modifier and Type | Method and Description |
|---|---|
org.springframework.batch.repeat.RepeatStatus |
execute(StepContribution contribution,
ChunkContext chunkContext)
Given the current context in the form of a step contribution, do whatever
is necessary to process this unit inside a transaction.
|
@Nullable org.springframework.batch.repeat.RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws java.lang.Exception
RepeatStatus.FINISHED if finished. If not they return
RepeatStatus.CONTINUABLE. On failure throws an exception.contribution - mutable state to be passed back to update the current
step executionchunkContext - attributes shared between invocations but not between
restartsRepeatStatus indicating whether processing is
continuable. Returning null is interpreted as RepeatStatus.FINISHEDjava.lang.Exception - thrown if error occurs during execution.