public class LogAndFailExceptionHandler extends Object implements DeserializationExceptionHandler
DeserializationExceptionHandler.DeserializationHandlerResponse| Constructor and Description |
|---|
LogAndFailExceptionHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Map<String,?> configs)
Configure this class with the given key-value pairs
|
DeserializationExceptionHandler.DeserializationHandlerResponse |
handle(ProcessorContext context,
ConsumerRecord<byte[],byte[]> record,
Exception exception)
Inspect a record and the exception received.
|
public DeserializationExceptionHandler.DeserializationHandlerResponse handle(ProcessorContext context, ConsumerRecord<byte[],byte[]> record, Exception exception)
DeserializationExceptionHandlerhandle in interface DeserializationExceptionHandlercontext - processor contextrecord - record that failed deserializationexception - the actual exceptionpublic void configure(Map<String,?> configs)
Configurableconfigure in interface Configurable