Interface RecordWriterListener<P>

  • Type Parameters:
    P - type of the record's payload
    All Known Implementing Classes:
    CompositeRecordWriterListener

    public interface RecordWriterListener<P>
    Enables the implementing class to get notified before/after writing a batch of records.
    Author:
    Mario Mueller ([email protected])
    • Method Detail

      • beforeRecordWriting

        default void beforeRecordWriting​(Batch<P> batch)
        Called before writing each batch of records.
        Parameters:
        batch - to be written
      • afterRecordWriting

        default void afterRecordWriting​(Batch<P> batch)
        Called after writing each batch of records.
        Parameters:
        batch - of records that have been written.
      • onRecordWritingException

        default void onRecordWritingException​(Batch<P> batch,
                                              java.lang.Throwable throwable)
        Called when an exception occurs during batch writing.
        Parameters:
        batch - attempted to be written
        throwable - the throwable that was thrown during record writing