Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The basic interface added will be:

Code Block
languagejava
/**

...


 * An interface that allows user code to inspect a record that has failed processing

...


 */

...


public interface RecordExceptionHandler {

...


 /**

...


  * Inspect a record and its context

...


  */ 

...


 void handle(ConsumerRecord<byte[], byte[]> record, RecordContext context, ExceptionType exceptionType);
}
} 

Users will be able to set an exception handler through the following new config option:

...