public class NestedRepeatCallback extends java.lang.Object implements RepeatCallback
RepeatOperations
instance. Useful when nesting or composing batches in one another, e.g. for
breaking a batch down into chunks.Constructor and Description |
---|
NestedRepeatCallback(RepeatOperations template,
RepeatCallback callback)
Constructor setting mandatory fields.
|
Modifier and Type | Method and Description |
---|---|
RepeatStatus |
doInIteration(RepeatContext context)
Simply calls template.execute(callback).
|
public NestedRepeatCallback(RepeatOperations template, RepeatCallback callback)
template
- the RepeatOperations
to use when calling the
delegate callbackcallback
- the RepeatCallback
delegatepublic RepeatStatus doInIteration(RepeatContext context) throws java.lang.Exception
doInIteration
in interface RepeatCallback
context
- the current context passed in by the caller.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)