Package org.apache.kafka.streams.errors
Class LogAndContinueProcessingExceptionHandler
java.lang.Object
org.apache.kafka.streams.errors.LogAndContinueProcessingExceptionHandler
- All Implemented Interfaces:
Configurable,ProcessingExceptionHandler
public class LogAndContinueProcessingExceptionHandler
extends Object
implements ProcessingExceptionHandler
Processing exception handler that logs a processing exception and then
signals the processing pipeline to continue processing more records.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.kafka.streams.errors.ProcessingExceptionHandler
ProcessingExceptionHandler.ProcessingHandlerResponse -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidConfigure this class with the given key-value pairshandle(ErrorHandlerContext context, Record<?, ?> record, Exception exception) Inspect a record and the exception received
-
Constructor Details
-
LogAndContinueProcessingExceptionHandler
public LogAndContinueProcessingExceptionHandler()
-
-
Method Details
-
handle
public ProcessingExceptionHandler.ProcessingHandlerResponse handle(ErrorHandlerContext context, Record<?, ?> record, Exception exception) Description copied from interface:ProcessingExceptionHandlerInspect a record and the exception received- Specified by:
handlein interfaceProcessingExceptionHandler- Parameters:
context- processing context metadatarecord- record where the exception occurredexception- the actual exception
-
configure
Description copied from interface:ConfigurableConfigure this class with the given key-value pairs- Specified by:
configurein interfaceConfigurable
-