public class CompletionPolicySupport extends java.lang.Object implements CompletionPolicy
CompletionPolicy
implementations.Constructor and Description |
---|
CompletionPolicySupport() |
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean isComplete(RepeatContext context, RepeatStatus result)
true
, 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,
RepeatStatus)
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)