public class BatchletAdapter extends java.lang.Object implements StoppableTasklet
| Constructor and Description |
|---|
BatchletAdapter(javax.batch.api.Batchlet batchlet) |
| 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 |
stop()
Used to signal that the job this
Tasklet is executing
within has been requested to stop. |
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
restartsRepeatStatus indicating whether processing is
continuable.java.lang.Exceptionpublic void stop()
StoppableTaskletTasklet is executing
within has been requested to stop.stop in interface StoppableTasklet