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());
| Modifier and Type | Method and Description |
|---|---|
void |
onSkippedRead(java.lang.Throwable t)
This method receives control when the BatchDataStream fails to read and skips a record.
|
void |
onSkippedWrite(java.lang.Object o,
java.lang.Throwable t)
This method receives control when the BatchDataStream fails to write and skips a record.
|
void onSkippedRead(java.lang.Throwable t)
t - The failure that caused the record to be skipped.void onSkippedWrite(java.lang.Object o,
java.lang.Throwable t)
o - The object that was not written.t - The failure that caused the record to be skipped.