org.springframework.batch.core.step.tasklet
Interface Tasklet

All Known Implementing Classes:
CallableTaskletAdapter, ChunkOrientedTasklet, MethodInvokingTaskletAdapter, SystemCommandTasklet

public interface Tasklet

Strategy for processing in a step.

Author:
Dave Syer

Method Summary
 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.
 

Method Detail

execute

org.springframework.batch.repeat.RepeatStatus execute(StepContribution contribution,
                                                      ChunkContext chunkContext)
                                                      throws java.lang.Exception
Given the current context in the form of a step contribution, do whatever is necessary to process this unit inside a transaction. Implementations return RepeatStatus.FINISHED if finished. If not they return RepeatStatus.CONTINUABLE. On failure throws an exception.

Parameters:
contribution - mutable state to be passed back to update the current step execution
chunkContext - attributes shared between invocations but not between restarts
Returns:
an RepeatStatus indicating whether processing is continuable.
Throws:
java.lang.Exception


Copyright © 2009. All Rights Reserved.