Configurable
LogAndContinueExceptionHandler
, LogAndFailExceptionHandler
public interface DeserializationExceptionHandler extends Configurable
Modifier and Type | Interface | Description |
---|---|---|
static class |
DeserializationExceptionHandler.DeserializationHandlerResponse |
Enumeration that describes the response from the exception handler.
|
Modifier and Type | Method | Description |
---|---|---|
DeserializationExceptionHandler.DeserializationHandlerResponse |
handle(ProcessorContext context,
ConsumerRecord<byte[],byte[]> record,
java.lang.Exception exception) |
Inspect a record and the exception received.
|
configure
DeserializationExceptionHandler.DeserializationHandlerResponse handle(ProcessorContext context, ConsumerRecord<byte[],byte[]> record, java.lang.Exception exception)
context
- processor contextrecord
- record that failed deserializationexception
- the actual exception