Class OffsetOutOfRangeException

All Implemented Interfaces:
Serializable
Direct Known Subclasses:
LogTruncationException

@Public 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<TopicPartition, Long> offsetOutOfRangePartitions)
      Constructs a new OffsetOutOfRangeException with the offsets that are out of range.
      Parameters:
      offsetOutOfRangePartitions - Map of partition to the out-of-range offset
    • OffsetOutOfRangeException

      public OffsetOutOfRangeException(String message, Map<TopicPartition, Long> offsetOutOfRangePartitions)
      Constructs a new OffsetOutOfRangeException with a custom message.
      Parameters:
      message - The detail message
      offsetOutOfRangePartitions - Map of partition to the out-of-range offset
  • Method Details