类 NeverSkipItemSkipPolicy
- java.lang.Object
- org.springframework.batch.core.step.skip.NeverSkipItemSkipPolicy
- 所有已实现的接口:
SkipPolicy
public class NeverSkipItemSkipPolicy extends java.lang.Object implements SkipPolicy
SkipPolicy
implementation that always returns false, indicating that an item should not be skipped.- 作者:
- Lucas Ward
构造器概要
构造器 构造器 说明 NeverSkipItemSkipPolicy()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 boolean
shouldSkip(java.lang.Throwable t, int skipCount)
Returns true or false, indicating whether or not processing should continue with the given throwable.
构造器详细资料
NeverSkipItemSkipPolicy
public NeverSkipItemSkipPolicy()
方法详细资料
shouldSkip
public boolean shouldSkip(java.lang.Throwable t, int skipCount)
从接口复制的说明: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.