Package org.apache.kafka.streams.errors
Class LogAndContinueExceptionHandler
- java.lang.Object
-
- org.apache.kafka.streams.errors.LogAndContinueExceptionHandler
-
- All Implemented Interfaces:
org.apache.kafka.common.Configurable,DeserializationExceptionHandler
public class LogAndContinueExceptionHandler extends java.lang.Object implements DeserializationExceptionHandler
Deserialization handler that logs a deserialization 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.DeserializationExceptionHandler
DeserializationExceptionHandler.DeserializationHandlerResponse
-
-
Constructor Summary
Constructors Constructor Description LogAndContinueExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(java.util.Map<java.lang.String,?> configs)DeserializationExceptionHandler.DeserializationHandlerResponsehandle(ProcessorContext context, org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record, java.lang.Exception exception)Inspect a record and the exception received.
-
-
-
Method Detail
-
handle
public DeserializationExceptionHandler.DeserializationHandlerResponse handle(ProcessorContext context, org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record, java.lang.Exception exception)
Description copied from interface:DeserializationExceptionHandlerInspect a record and the exception received.- Specified by:
handlein interfaceDeserializationExceptionHandler- Parameters:
context- processor contextrecord- record that failed deserializationexception- the actual exception
-
configure
public void configure(java.util.Map<java.lang.String,?> configs)
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
-