Class OffsetOutOfRangeException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.clients.consumer.InvalidOffsetException
org.apache.kafka.clients.consumer.OffsetOutOfRangeException
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LogTruncationException

public class OffsetOutOfRangeException extends InvalidOffsetException
No reset policy has been defined, and the offsets for these partitions are either larger or smaller than the range of offsets the server has for the given partition.
See Also:
  • Constructor Details

    • OffsetOutOfRangeException

      public OffsetOutOfRangeException(Map<org.apache.kafka.common.TopicPartition,Long> offsetOutOfRangePartitions)
    • OffsetOutOfRangeException

      public OffsetOutOfRangeException(String message, Map<org.apache.kafka.common.TopicPartition,Long> offsetOutOfRangePartitions)
  • Method Details

    • offsetOutOfRangePartitions

      public Map<org.apache.kafka.common.TopicPartition,Long> offsetOutOfRangePartitions()
      Get a map of the topic partitions and the respective out-of-range fetch offsets.
    • partitions

      public Set<org.apache.kafka.common.TopicPartition> partitions()
      Specified by:
      partitions in class InvalidOffsetException