Class NoOffsetForPartitionException

  • All Implemented Interfaces:
    java.io.Serializable

    public class NoOffsetForPartitionException
    extends InvalidOffsetException
    Indicates that there is no stored offset for a partition and no defined offset reset policy.
    See Also:
    Serialized Form
    • Constructor Detail

      • NoOffsetForPartitionException

        public NoOffsetForPartitionException​(TopicPartition partition)
      • NoOffsetForPartitionException

        public NoOffsetForPartitionException​(java.util.Collection<TopicPartition> partitions)
    • Method Detail

      • partition

        @Deprecated
        public TopicPartition partition()
        Deprecated.
        please use partitions
        returns the first partition (out of partitions) for which no offset is defined.
        Returns:
        a partition with no offset