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