Class RecoveringDeserializationExceptionHandler
- java.lang.Object
-
- org.springframework.kafka.streams.RecoveringDeserializationExceptionHandler
-
- All Implemented Interfaces:
org.apache.kafka.common.Configurable
,org.apache.kafka.streams.errors.DeserializationExceptionHandler
public class RecoveringDeserializationExceptionHandler extends java.lang.Object implements org.apache.kafka.streams.errors.DeserializationExceptionHandler
ADeserializationExceptionHandler
that calls aConsumerRecordRecoverer
. and continues.- Since:
- 2.3
- Author:
- Gary Russell
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
KSTREAM_DESERIALIZATION_RECOVERER
Property name for configuring the recoverer using properties.
-
Constructor Summary
Constructors Constructor Description RecoveringDeserializationExceptionHandler()
RecoveringDeserializationExceptionHandler(ConsumerRecordRecoverer recoverer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(java.util.Map<java.lang.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, java.lang.Exception exception)
-
-
-
Field Detail
-
KSTREAM_DESERIALIZATION_RECOVERER
public static final java.lang.String KSTREAM_DESERIALIZATION_RECOVERER
Property name for configuring the recoverer using properties.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RecoveringDeserializationExceptionHandler
public RecoveringDeserializationExceptionHandler()
-
RecoveringDeserializationExceptionHandler
public RecoveringDeserializationExceptionHandler(ConsumerRecordRecoverer recoverer)
-
-
Method Detail
-
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, java.lang.Exception exception)
- Specified by:
handle
in interfaceorg.apache.kafka.streams.errors.DeserializationExceptionHandler
-
configure
public void configure(java.util.Map<java.lang.String,?> configs)
- Specified by:
configure
in interfaceorg.apache.kafka.common.Configurable
-
-