Class KafkaBackoffException

All Implemented Interfaces:
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:
  • Constructor Details

    • KafkaBackoffException

      public KafkaBackoffException(String message, org.apache.kafka.common.TopicPartition topicPartition, 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 Details

    • getListenerId

      public String getListenerId()
    • getTopicPartition

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

      public long getDueTimestamp()