com.ibm.websphere.batch

Interface SkipListener


  1. public interface SkipListener
SkipListener defines the callback interface for BatchDataStream skip-record processing.

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
  1. void
onSkippedRead(java.lang.Throwable t)
This method receives control when the BatchDataStream fails to read and skips a record.
  1. void
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

  1. 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

  1. void onSkippedWrite(java.lang.Object o,
  2. 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.