接口 RepeatOperations
- 所有已知实现类:
RepeatTemplate
,TaskExecutorRepeatTemplate
public interface RepeatOperations
The main interface providing access to batch operations. The batch client is theRepeatCallback
, where a single item or record is processed. The batch behaviour, boundary conditions, transactions etc, are dealt with by theRepeatOperations
in such as way that the client does not need to know about them. The client may have access to framework abstractions, like template data sources, but these should work the same whether they are in a batch or not.- 作者:
- Dave Syer
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 RepeatStatus
iterate(RepeatCallback callback)
Execute the callback repeatedly, until a decision can be made to complete.
方法详细资料
iterate
RepeatStatus iterate(RepeatCallback callback) throws RepeatException
Execute the callback repeatedly, until a decision can be made to complete. The decision about how many times to execute or when to complete, and what to do in the case of an error is delegated to aCompletionPolicy
.- 参数:
callback
- the batch callback.- 返回:
- the aggregate of the result of all the callback operations. An indication of whether the
RepeatOperations
can continue processing if this method is called again. - 抛出:
RepeatException