public class NestedRepeatCallback extends 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 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.Exception
- if there is a problem with the processing.RepeatCallback.doInIteration(RepeatContext)
Copyright © 2014 Pivotal. All rights reserved.