Class DeadLetterTopicExceptionHandler
- java.lang.Object
-
- io.streamthoughts.azkarra.commons.error.DeadLetterTopicExceptionHandler
-
- All Implemented Interfaces:
org.apache.kafka.common.Configurable
,org.apache.kafka.streams.errors.DeserializationExceptionHandler
public class DeadLetterTopicExceptionHandler extends Object implements org.apache.kafka.streams.errors.DeserializationExceptionHandler
ADeserializationExceptionHandler
implementation that write rejected records to an dead-letter-topic.
-
-
Constructor Summary
Constructors Constructor Description DeadLetterTopicExceptionHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Map<String,?> configs)
org.apache.kafka.streams.errors.DeserializationExceptionHandler.DeserializationHandlerResponse
handle(org.apache.kafka.streams.processor.ProcessorContext context, org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record, Exception exception)
-
-
-
Method Detail
-
configure
public void configure(Map<String,?> configs)
- Specified by:
configure
in interfaceorg.apache.kafka.common.Configurable
-
handle
public org.apache.kafka.streams.errors.DeserializationExceptionHandler.DeserializationHandlerResponse handle(org.apache.kafka.streams.processor.ProcessorContext context, org.apache.kafka.clients.consumer.ConsumerRecord<byte[],byte[]> record, Exception exception)
- Specified by:
handle
in interfaceorg.apache.kafka.streams.errors.DeserializationExceptionHandler
-
-