类 CompletionPolicySupport
- java.lang.Object
- org.springframework.batch.repeat.policy.CompletionPolicySupport
- 所有已实现的接口:
CompletionPolicy
public class CompletionPolicySupport extends java.lang.Object implements CompletionPolicy
Very simple base class forCompletionPolicy
implementations.- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 CompletionPolicySupport()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
isComplete(RepeatContext context)
Always true.boolean
isComplete(RepeatContext context, RepeatStatus result)
If exit status is not continuable returntrue
, otherwise delegate toisComplete(RepeatContext)
.RepeatContext
start(RepeatContext context)
Build a newRepeatContextSupport
and return it.void
update(RepeatContext context)
Increment the context so the counter is up to date.
构造器详细资料
CompletionPolicySupport
public CompletionPolicySupport()
方法详细资料
isComplete
public boolean isComplete(RepeatContext context, RepeatStatus result)
If exit status is not continuable returntrue
, otherwise delegate toisComplete(RepeatContext)
.- 指定者:
isComplete
在接口中CompletionPolicy
- 参数:
context
- the current batch context.result
- the result of the latest batch item processing.- 返回:
- true if the batch should terminate.
- 另请参阅:
CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext, RepeatStatus)
isComplete
public boolean isComplete(RepeatContext context)
Always true.- 指定者:
isComplete
在接口中CompletionPolicy
- 参数:
context
- the current batch context.- 返回:
- true if the batch should terminate.
- 另请参阅:
CompletionPolicy.isComplete(org.springframework.batch.repeat.RepeatContext)
start
public RepeatContext start(RepeatContext context)
Build a newRepeatContextSupport
and return it.- 指定者:
start
在接口中CompletionPolicy
- 参数:
context
- the current context if one is already in progress.- 返回:
- a context object that can be used by the implementation to store internal state for a batch.
- 另请参阅:
CompletionPolicy.start(RepeatContext)
update
public void update(RepeatContext context)
Increment the context so the counter is up to date. Do nothing else.- 指定者:
update
在接口中CompletionPolicy
- 参数:
context
- the value returned by start.- 另请参阅:
CompletionPolicy.update(org.springframework.batch.repeat.RepeatContext)