public class DefaultResultCompletionPolicy extends CompletionPolicySupport
CompletionPolicy that bases its decision on the result of
a batch operation. If the result is null or not continuable according to the
RepeatStatus the batch is complete, otherwise not.| Constructor and Description |
|---|
DefaultResultCompletionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isComplete(RepeatContext context)
Always false.
|
boolean |
isComplete(RepeatContext context,
RepeatStatus result)
True if the result is null, or a
RepeatStatus indicating
completion. |
start, updatepublic boolean isComplete(RepeatContext context, RepeatStatus result)
RepeatStatus indicating
completion.isComplete in interface CompletionPolicyisComplete in class CompletionPolicySupportcontext - the current batch context.result - the result of the latest batch item processing.CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext,
RepeatStatus)public boolean isComplete(RepeatContext context)
isComplete in interface CompletionPolicyisComplete in class CompletionPolicySupportcontext - the current batch context.CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext)