接口 SkipListener<T,S>
- 所有超级接口:
StepListener
- 所有已知实现类:
CompositeSkipListener
,MulticasterBatchListener
,SkipListenerAdapter
,SkipListenerSupport
,StagingItemListener
,StepListenerSupport
public interface SkipListener<T,S> extends StepListener
Interface for listener to skipped items. Callbacks will be called byStep
implementations at the appropriate time in the step lifecycle. Implementers of this interface should not assume that any method will be called immediately after an error has been encountered. Because there may be errors later on in processing the chunk, this listener will not be called until just before committing.- 作者:
- Dave Syer, Robert Kasanicky
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
onSkipInProcess(T item, java.lang.Throwable t)
This item failed on processing with the given exception, and a skip was called for.void
onSkipInRead(java.lang.Throwable t)
Callback for a failure on read that is legal, so is not going to be re-thrown.void
onSkipInWrite(S item, java.lang.Throwable t)
This item failed on write with the given exception, and a skip was called for.
方法详细资料
onSkipInRead
void onSkipInRead(java.lang.Throwable t)
Callback for a failure on read that is legal, so is not going to be re-thrown. In case transaction is rolled back and items are re-read, this callback will occur repeatedly for the same cause. This will only happen if read items are not buffered.- 参数:
t
- cause of the failure
onSkipInWrite
void onSkipInWrite(S item, java.lang.Throwable t)
This item failed on write with the given exception, and a skip was called for.- 参数:
item
- the failed itemt
- the cause of the failure
onSkipInProcess
void onSkipInProcess(T item, java.lang.Throwable t)
This item failed on processing with the given exception, and a skip was called for.- 参数:
item
- the failed itemt
- the cause of the failure