Class SkipAndContinueExceptionHandler

java.lang.Object
org.springframework.cloud.stream.binder.kafka.streams.SkipAndContinueExceptionHandler
All Implemented Interfaces:
org.apache.kafka.common.Configurable, org.apache.kafka.streams.errors.DeserializationExceptionHandler

public class SkipAndContinueExceptionHandler extends Object implements org.apache.kafka.streams.errors.DeserializationExceptionHandler
DeserializationExceptionHandler that allows to silently skip deserialization exceptions and continue processing.
Since:
3.1.2
Author:
Soby Chakco
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.apache.kafka.streams.errors.DeserializationExceptionHandler

    org.apache.kafka.streams.errors.DeserializationExceptionHandler.DeserializationHandlerResponse
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    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)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SkipAndContinueExceptionHandler

      public SkipAndContinueExceptionHandler()
  • Method Details

    • 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 interface org.apache.kafka.streams.errors.DeserializationExceptionHandler
    • configure

      public void configure(Map<String,?> configs)
      Specified by:
      configure in interface org.apache.kafka.common.Configurable