com.ibm.websphere.batch
Interface SkipListener
- public interface SkipListener
The SkipListener gets control whenever the BatchDataStream skips a record due to a failed read or write.
The SkipListener is registered with the BatchDataStream via AbstractBatchDataStreamInterface.addSkipListener(SkipListener).
For example:
TextFileReader bds = (TextFileReader) BatchDataStreamMgr.getBatchDataStream("input");
bds.addSkipListener(new MySkipListener());
Method Summary
Modifier and Type | Method and Description |
---|---|
|
onSkippedRead(java.lang.Throwable t)
This method receives control when the BatchDataStream fails to read and skips a record.
|
|
onSkippedWrite(java.lang.Object o,java.lang.Throwable t)
This method receives control when the BatchDataStream fails to write and skips a record.
|
Method Detail
onSkippedRead
- void onSkippedRead(java.lang.Throwable t)
This method receives control when the BatchDataStream fails to read and skips a record.
Parameters:
t
- The failure that caused the record to be skipped. onSkippedWrite
- void onSkippedWrite(java.lang.Object o,
- java.lang.Throwable t)
This method receives control when the BatchDataStream fails to write and skips a record.
Parameters:
o
- The object that was not written. t
- The failure that caused the record to be skipped.