|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.repeat.policy.CompletionPolicySupport
org.springframework.batch.repeat.policy.DefaultResultCompletionPolicy
public class DefaultResultCompletionPolicy
Very simple 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 Summary | |
|---|---|
DefaultResultCompletionPolicy()
|
|
| Method Summary | |
|---|---|
boolean |
isComplete(RepeatContext context)
Always false. |
boolean |
isComplete(RepeatContext context,
RepeatStatus result)
True if the result is null, or a RepeatStatus indicating
completion. |
| Methods inherited from class org.springframework.batch.repeat.policy.CompletionPolicySupport |
|---|
start, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultResultCompletionPolicy()
| Method Detail |
|---|
public 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)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||