|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.core.step.item.ChunkOrientedTasklet<I>
I - input item typepublic class ChunkOrientedTasklet<I>
A Tasklet implementing variations on read-process-write item
handling.
| Constructor Summary | |
|---|---|
ChunkOrientedTasklet(ChunkProvider<I> chunkProvider,
ChunkProcessor<I> chunkProcessor)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChunkOrientedTasklet(ChunkProvider<I> chunkProvider,
ChunkProcessor<I> chunkProcessor)
| Method Detail |
|---|
public void setBuffering(boolean buffering)
buffering -
public 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
restarts
RepeatStatus indicating whether processing is
continuable.
java.lang.Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||