Class SkipListenerAdapter<T,S>
- java.lang.Object
- org.springframework.batch.core.jsr.SkipListenerAdapter<T,S>
- All Implemented Interfaces:
SkipListener<T,S>,StepListener
public class SkipListenerAdapter<T,S> extends java.lang.Object implements SkipListener<T,S>
Constructor Summary
Constructors Constructor Description SkipListenerAdapter(javax.batch.api.chunk.listener.SkipReadListener skipReadDelegate, javax.batch.api.chunk.listener.SkipProcessListener skipProcessDelegate, javax.batch.api.chunk.listener.SkipWriteListener skipWriteDelegate)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonSkipInProcess(T item, java.lang.Throwable t)This item failed on processing with the given exception, and a skip was called for.voidonSkipInRead(java.lang.Throwable t)Callback for a failure on read that is legal, so is not going to be re-thrown.voidonSkipInWrite(S item, java.lang.Throwable t)This item failed on write with the given exception, and a skip was called for.
Method Detail
onSkipInRead
public void onSkipInRead(java.lang.Throwable t)
Description copied from interface:SkipListenerCallback 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.- Specified by:
onSkipInReadin interfaceSkipListener<T,S>- Parameters:
t- cause of the failure
onSkipInWrite
public void onSkipInWrite(S item, java.lang.Throwable t)
Description copied from interface:SkipListenerThis item failed on write with the given exception, and a skip was called for.- Specified by:
onSkipInWritein interfaceSkipListener<T,S>- Parameters:
item- the failed itemt- the cause of the failure
onSkipInProcess
public void onSkipInProcess(T item, java.lang.Throwable t)
Description copied from interface:SkipListenerThis item failed on processing with the given exception, and a skip was called for.- Specified by:
onSkipInProcessin interfaceSkipListener<T,S>- Parameters:
item- the failed itemt- the cause of the failure