|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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,
ExitStatus result)
Return true if exit status is not continuable, 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, ExitStatus result)
true
if exit status is not continuable, otherwise
delegate to isComplete(RepeatContext)
.
isComplete
in interface CompletionPolicy
context
- the current batch context.result
- the result of the latest batch item processing.
CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext,
ExitStatus)
public boolean isComplete(RepeatContext context)
isComplete
in interface CompletionPolicy
context
- the current batch context.
CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext)
public RepeatContext start(RepeatContext context)
RepeatContextSupport
and return it.
start
in interface CompletionPolicy
context
- the current context if one is already in progress.
CompletionPolicy.start(RepeatContext)
public void update(RepeatContext context)
update
in interface CompletionPolicy
context
- 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 |