类 SkipListenerAdapter<T,S>
- java.lang.Object
- org.springframework.batch.core.jsr.SkipListenerAdapter<T,S>
- 所有已实现的接口:
SkipListener<T,S>
,StepListener
public class SkipListenerAdapter<T,S> extends java.lang.Object implements SkipListener<T,S>
构造器概要
构造器 构造器 说明 SkipListenerAdapter(javax.batch.api.chunk.listener.SkipReadListener skipReadDelegate, javax.batch.api.chunk.listener.SkipProcessListener skipProcessDelegate, javax.batch.api.chunk.listener.SkipWriteListener skipWriteDelegate)
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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.
构造器详细资料
SkipListenerAdapter
public SkipListenerAdapter(javax.batch.api.chunk.listener.SkipReadListener skipReadDelegate, javax.batch.api.chunk.listener.SkipProcessListener skipProcessDelegate, javax.batch.api.chunk.listener.SkipWriteListener skipWriteDelegate)
方法详细资料
onSkipInRead
public void onSkipInRead(java.lang.Throwable t)
从接口复制的说明:SkipListener
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.- 指定者:
onSkipInRead
在接口中SkipListener<T,S>
- 参数:
t
- cause of the failure
onSkipInWrite
public void onSkipInWrite(S item, java.lang.Throwable t)
从接口复制的说明:SkipListener
This item failed on write with the given exception, and a skip was called for.- 指定者:
onSkipInWrite
在接口中SkipListener<T,S>
- 参数:
item
- the failed itemt
- the cause of the failure
onSkipInProcess
public void onSkipInProcess(T item, java.lang.Throwable t)
从接口复制的说明:SkipListener
This item failed on processing with the given exception, and a skip was called for.- 指定者:
onSkipInProcess
在接口中SkipListener<T,S>
- 参数:
item
- the failed itemt
- the cause of the failure