类 NestedRepeatCallback
- java.lang.Object
- org.springframework.batch.repeat.callback.NestedRepeatCallback
- 所有已实现的接口:
RepeatCallback
public class NestedRepeatCallback extends java.lang.Object implements RepeatCallback
Callback that delegates to another callback, via aRepeatOperations
instance. Useful when nesting or composing batches in one another, e.g. for breaking a batch down into chunks.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 NestedRepeatCallback(RepeatOperations template, RepeatCallback callback)
Constructor setting mandatory fields.
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 RepeatStatus
doInIteration(RepeatContext context)
Simply calls template.execute(callback).
构造器详细资料
NestedRepeatCallback
public NestedRepeatCallback(RepeatOperations template, RepeatCallback callback)
Constructor setting mandatory fields.- 参数:
template
- theRepeatOperations
to use when calling the delegate callbackcallback
- theRepeatCallback
delegate
方法详细资料
doInIteration
public RepeatStatus doInIteration(RepeatContext context) throws java.lang.Exception
Simply calls template.execute(callback). Clients can use this to repeat a batch process, or to break a process up into smaller chunks (e.g. to change the transaction boundaries).- 指定者:
doInIteration
在接口中RepeatCallback
- 参数:
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.- 另请参阅:
RepeatCallback.doInIteration(RepeatContext)