|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.batch.repeat.policy.CompletionPolicySupport
public class CompletionPolicySupport
Very simple base class for CompletionPolicy implementations.
| Constructor Summary | |
|---|---|
CompletionPolicySupport()
|
|
| Method Summary | |
|---|---|
boolean |
isComplete(RepeatContext context)
Always true. |
boolean |
isComplete(RepeatContext context,
RepeatStatus result)
If exit status is not continuable return true, otherwise
delegate to isComplete(RepeatContext). |
RepeatContext |
start(RepeatContext context)
Build a new RepeatContextSupport and return it. |
void |
update(RepeatContext context)
Increment the context so the counter is up to date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CompletionPolicySupport()
| Method Detail |
|---|
public boolean isComplete(RepeatContext context,
RepeatStatus result)
true, otherwise
delegate to isComplete(RepeatContext).
isComplete in interface CompletionPolicycontext - 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 CompletionPolicycontext - the current batch context.
CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext)public RepeatContext start(RepeatContext context)
RepeatContextSupport and return it.
start in interface CompletionPolicycontext - the current context if one is already in progress.
CompletionPolicy.start(RepeatContext)public void update(RepeatContext context)
update in interface CompletionPolicycontext - the value returned by start.CompletionPolicy.update(org.springframework.batch.repeat.RepeatContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||