Class KafkaBackoffException

  • All Implemented Interfaces:
    java.io.Serializable

    public class KafkaBackoffException
    extends KafkaException
    Exception thrown when the consumer should not yet consume the message due to backOff.
    Since:
    2.7
    Author:
    Tomaz Fernandes
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      KafkaBackoffException​(java.lang.String message, org.apache.kafka.common.TopicPartition topicPartition, java.lang.String listenerId, long dueTimestamp)
      Constructor with data from the BackOff event.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getDueTimestamp()  
      java.lang.String getListenerId()  
      org.apache.kafka.common.TopicPartition getTopicPartition()  
      • Methods inherited from class org.springframework.core.NestedRuntimeException

        contains, getMessage, getMostSpecificCause, getRootCause
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • KafkaBackoffException

        public KafkaBackoffException​(java.lang.String message,
                                     org.apache.kafka.common.TopicPartition topicPartition,
                                     java.lang.String listenerId,
                                     long dueTimestamp)
        Constructor with data from the BackOff event.
        Parameters:
        message - the error message.
        topicPartition - the partition that was backed off.
        listenerId - the listenerId for the consumer that was backed off.
        dueTimestamp - the time at which the message should be consumed.
    • Method Detail

      • getListenerId

        public java.lang.String getListenerId()
      • getTopicPartition

        public org.apache.kafka.common.TopicPartition getTopicPartition()
      • getDueTimestamp

        public long getDueTimestamp()