Class NoOffsetForPartitionException

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.NoOffsetForPartitionException
All Implemented Interfaces:
Serializable

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

    • NoOffsetForPartitionException

      public NoOffsetForPartitionException(org.apache.kafka.common.TopicPartition partition)
    • NoOffsetForPartitionException

      public NoOffsetForPartitionException(Collection<org.apache.kafka.common.TopicPartition> partitions)
  • Method Details

    • partitions

      public Set<org.apache.kafka.common.TopicPartition> partitions()
      returns all partitions for which no offsets are defined.
      Specified by:
      partitions in class InvalidOffsetException
      Returns:
      all partitions without offsets