public class LogAndFailExceptionHandler extends java.lang.Object implements DeserializationExceptionHandler
DeserializationExceptionHandler.DeserializationHandlerResponse| Constructor and Description |
|---|
LogAndFailExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(java.util.Map<java.lang.String,?> configs) |
DeserializationExceptionHandler.DeserializationHandlerResponse |
handle(ProcessorContext context,
org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record,
java.lang.Exception exception)
Inspect a record and the exception received.
|
public DeserializationExceptionHandler.DeserializationHandlerResponse handle(ProcessorContext context, org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record, java.lang.Exception exception)
DeserializationExceptionHandlerhandle in interface DeserializationExceptionHandlercontext - processor contextrecord - record that failed deserializationexception - the actual exceptionpublic void configure(java.util.Map<java.lang.String,?> configs)
configure in interface org.apache.kafka.common.Configurable