Class SeekToCurrentWithSleepBatchErrorHandler

java.lang.Object
org.springframework.kafka.listener.KafkaExceptionLogLevelAware
org.springframework.kafka.listener.SeekToCurrentBatchErrorHandler
dev.vality.kafka.common.exception.handler.SeekToCurrentWithSleepBatchErrorHandler
All Implemented Interfaces:
org.springframework.kafka.listener.BatchErrorHandler, org.springframework.kafka.listener.ConsumerAwareBatchErrorHandler, org.springframework.kafka.listener.ContainerAwareBatchErrorHandler, org.springframework.kafka.listener.GenericErrorHandler<org.apache.kafka.clients.consumer.ConsumerRecords<?,​?>>

@Deprecated
public class SeekToCurrentWithSleepBatchErrorHandler
extends org.springframework.kafka.listener.SeekToCurrentBatchErrorHandler
Deprecated.
in favor of CommonErrorHandler or DefaultErrorHandler or ExponentialBackOffDefaultErrorHandler.
  • Constructor Summary

    Constructors
    Constructor Description
    SeekToCurrentWithSleepBatchErrorHandler()
    Deprecated.
     
    SeekToCurrentWithSleepBatchErrorHandler​(Integer sleepTimeSeconds)
    Deprecated.
     
  • Method Summary

    Modifier and Type Method Description
    void handle​(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer, org.springframework.kafka.listener.MessageListenerContainer container)
    Deprecated.
     
    boolean isAckAfterHandle()
    Deprecated.
     

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

    clearThreadState, setBackOff

    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.ConsumerAwareBatchErrorHandler

    handle

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

    handle, handle

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

    setAckAfterHandle
  • Constructor Details

    • SeekToCurrentWithSleepBatchErrorHandler

      public SeekToCurrentWithSleepBatchErrorHandler​(Integer sleepTimeSeconds)
      Deprecated.
    • SeekToCurrentWithSleepBatchErrorHandler

      public SeekToCurrentWithSleepBatchErrorHandler()
      Deprecated.
  • Method Details

    • handle

      public void handle​(Exception thrownException, org.apache.kafka.clients.consumer.ConsumerRecords<?,​?> data, org.apache.kafka.clients.consumer.Consumer<?,​?> consumer, org.springframework.kafka.listener.MessageListenerContainer container)
      Deprecated.
      Specified by:
      handle in interface org.springframework.kafka.listener.BatchErrorHandler
      Specified by:
      handle in interface org.springframework.kafka.listener.ConsumerAwareBatchErrorHandler
      Specified by:
      handle in interface org.springframework.kafka.listener.ContainerAwareBatchErrorHandler
      Overrides:
      handle in class org.springframework.kafka.listener.SeekToCurrentBatchErrorHandler
    • isAckAfterHandle

      public boolean isAckAfterHandle()
      Deprecated.