|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.repeat.callback.NestedRepeatCallback
public class NestedRepeatCallback
Callback that delegates to another callback, via a RepeatOperations
instance. Useful when nesting or composing batches in one another, e.g. for
breaking a batch down into chunks.
| Constructor Summary | |
|---|---|
NestedRepeatCallback(RepeatOperations template,
RepeatCallback callback)
Constructor setting mandatory fields. |
|
| Method Summary | |
|---|---|
RepeatStatus |
doInIteration(RepeatContext context)
Simply calls template.execute(callback). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NestedRepeatCallback(RepeatOperations template,
RepeatCallback callback)
template - the RepeatOperations to use when calling the
delegate callbackcallback - the RepeatCallback delegate| Method Detail |
|---|
public RepeatStatus doInIteration(RepeatContext context)
throws java.lang.Exception
doInIteration in interface RepeatCallbackcontext - 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||