| Constructor and Description |
|---|
ChunkOrientedTasklet(ChunkProvider<I> chunkProvider,
ChunkProcessor<I> chunkProcessor) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
void |
setBuffering(boolean buffering)
Flag to indicate that items should be buffered once read.
|
public ChunkOrientedTasklet(ChunkProvider<I> chunkProvider, ChunkProcessor<I> chunkProcessor)
public void setBuffering(boolean buffering)
buffering - indicatorpublic RepeatStatus execute(StepContribution contribution, ChunkContext chunkContext) throws java.lang.Exception
TaskletRepeatStatus.FINISHED if finished. If not they return
RepeatStatus.CONTINUABLE. On failure throws an exception.execute in interface Taskletcontribution - 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.