org.springframework.batch.repeat
Interface RepeatCallback

All Known Implementing Classes:
ItemReaderRepeatCallback, NestedRepeatCallback

public interface RepeatCallback

Callback interface for batch operations. Many simple batch processes will be able to use off-the-shelf implementations of this interface, enabling the batch developer to concentrate on business logic.

Author:
Dave Syer
See Also:
RepeatOperations

Method Summary
 ExitStatus doInIteration(RepeatContext context)
          Implementations return true if they can continue processing - e.g.
 

Method Detail

doInIteration

ExitStatus doInIteration(RepeatContext context)
                         throws Exception
Implementations return true if they can continue processing - e.g. there is a datasource that is not yet exhausted. Exceptions are not necessarily fatal - the batch might continue depending on the Exception type and the implementation of the caller.

Parameters:
context - the current context passed in by the caller.
Returns:
true if there is (or may be) more data to process.
Throws:
Exception - if there is a problem with the processing.


Copyright © 2008 SpringSource. All Rights Reserved.