接口 RepeatCallback
public interface RepeatCallback
Callback interface for batch operations. Many simple processes will be able to use off-the-shelf implementations of this interface, enabling the application developer to concentrate on business logic.- 作者:
- Dave Syer
- 另请参阅:
RepeatOperations
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RepeatStatus
doInIteration(RepeatContext context)
Implementations return true if they can continue processing - e.g. there is a data source that is not yet exhausted.
方法详细资料
doInIteration
RepeatStatus doInIteration(RepeatContext context) throws java.lang.Exception
Implementations return true if they can continue processing - e.g. there is a data source that is not yet exhausted. Exceptions are not necessarily fatal - processing might continue depending on the Exception type and the implementation of the caller.- 参数:
context
- the current context passed in by the caller.- 返回:
- an
RepeatStatus
which is continuable if there is (or may be) more data to process. - 抛出:
java.lang.Exception
- if there is a problem with the processing.