Class SeekToCurrentWithSleepErrorHandler

java.lang.Object
org.springframework.kafka.listener.KafkaExceptionLogLevelAware
org.springframework.kafka.listener.ExceptionClassifier
org.springframework.kafka.listener.FailedRecordProcessor
org.springframework.kafka.listener.SeekToCurrentErrorHandler
dev.vality.kafka.common.exception.handler.SeekToCurrentWithSleepErrorHandler
All Implemented Interfaces:
org.springframework.kafka.listener.ConsumerAwareErrorHandler, org.springframework.kafka.listener.ContainerAwareErrorHandler, org.springframework.kafka.listener.DeliveryAttemptAware, org.springframework.kafka.listener.ErrorHandler, org.springframework.kafka.listener.GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecord<?,​?>>, org.springframework.kafka.listener.RemainingRecordsErrorHandler

public class SeekToCurrentWithSleepErrorHandler
extends org.springframework.kafka.listener.SeekToCurrentErrorHandler
  • Field Summary

    Fields inherited from class org.springframework.kafka.listener.FailedRecordProcessor

    logger
  • Constructor Summary

    Constructors
    Constructor Description
    SeekToCurrentWithSleepErrorHandler()  
    SeekToCurrentWithSleepErrorHandler​(int sleepTimeSeconds, int maxFailures)  
  • Method Summary

    Modifier and Type Method Description
    void handle​(Exception thrownException, List<org.apache.kafka.clients.consumer.ConsumerRecord<?,​?>> records, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer, org.springframework.kafka.listener.MessageListenerContainer container)  

    Methods inherited from class org.springframework.kafka.listener.SeekToCurrentErrorHandler

    isAckAfterHandle, setAckAfterHandle, setCommitRecovered

    Methods inherited from class org.springframework.kafka.listener.FailedRecordProcessor

    clearThreadState, deliveryAttempt, getRecoveryStrategy, getSkipPredicate, isCommitRecovered, setBackOffFunction, setResetStateOnExceptionChange, setResetStateOnRecoveryFailure, setRetryListeners

    Methods inherited from class org.springframework.kafka.listener.ExceptionClassifier

    addNotRetryableExceptions, getClassifier, removeNotRetryableException, setClassifications

    Methods inherited from class org.springframework.kafka.listener.KafkaExceptionLogLevelAware

    getLogLevel, setLogLevel

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.springframework.kafka.listener.ConsumerAwareErrorHandler

    handle

    Methods inherited from interface org.springframework.kafka.listener.ContainerAwareErrorHandler

    handle

    Methods inherited from interface org.springframework.kafka.listener.GenericErrorHandler

    clearThreadState

    Methods inherited from interface org.springframework.kafka.listener.RemainingRecordsErrorHandler

    handle
  • Constructor Details

    • SeekToCurrentWithSleepErrorHandler

      public SeekToCurrentWithSleepErrorHandler()
    • SeekToCurrentWithSleepErrorHandler

      public SeekToCurrentWithSleepErrorHandler​(int sleepTimeSeconds, int maxFailures)
  • Method Details

    • handle

      public void handle​(Exception thrownException, List<org.apache.kafka.clients.consumer.ConsumerRecord<?,​?>> records, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer, org.springframework.kafka.listener.MessageListenerContainer container)
      Specified by:
      handle in interface org.springframework.kafka.listener.ConsumerAwareErrorHandler
      Specified by:
      handle in interface org.springframework.kafka.listener.ContainerAwareErrorHandler
      Specified by:
      handle in interface org.springframework.kafka.listener.ErrorHandler
      Specified by:
      handle in interface org.springframework.kafka.listener.RemainingRecordsErrorHandler
      Overrides:
      handle in class org.springframework.kafka.listener.SeekToCurrentErrorHandler