类 CompositeSkipPolicy
- java.lang.Object
- org.springframework.batch.core.step.skip.CompositeSkipPolicy
- 所有已实现的接口:
SkipPolicy
public class CompositeSkipPolicy extends java.lang.Object implements SkipPolicy
- 作者:
- Dave Syer
构造器概要
构造器 构造器 说明 CompositeSkipPolicy()
CompositeSkipPolicy(SkipPolicy[] skipPolicies)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
setSkipPolicies(SkipPolicy[] skipPolicies)
boolean
shouldSkip(java.lang.Throwable t, int skipCount)
Returns true or false, indicating whether or not processing should continue with the given throwable.
构造器详细资料
CompositeSkipPolicy
public CompositeSkipPolicy()
CompositeSkipPolicy
public CompositeSkipPolicy(SkipPolicy[] skipPolicies)
方法详细资料
setSkipPolicies
public void setSkipPolicies(SkipPolicy[] skipPolicies)
shouldSkip
public boolean shouldSkip(java.lang.Throwable t, int skipCount) throws SkipLimitExceededException
从接口复制的说明:SkipPolicy
Returns true or false, indicating whether or not processing should continue with the given throwable. Clients may useskipCount<0
to probe for exception types that are skippable, so implementations should be able to handle gracefully the case whereskipCount<0
. Implementations should avoid throwing any undeclared exceptions.- 指定者:
shouldSkip
在接口中SkipPolicy
- 参数:
t
- exception encountered while processingskipCount
- currently running count of skips- 返回:
- true if processing should continue, false otherwise.
- 抛出:
SkipLimitExceededException
- if a limit is breached