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
Indicates that there is no stored offset for a partition and no defined offset
reset policy.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNoOffsetForPartitionException(Collection<TopicPartition> partitions) Constructs a new NoOffsetForPartitionException for multiple partitions.NoOffsetForPartitionException(TopicPartition partition) Constructs a new NoOffsetForPartitionException for a single partition. -
Method Summary
Modifier and TypeMethodDescriptionReturns all partitions for which no offsets are defined.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
NoOffsetForPartitionException
Constructs a new NoOffsetForPartitionException for a single partition.- Parameters:
partition- The partition for which no offset is defined
-
NoOffsetForPartitionException
Constructs a new NoOffsetForPartitionException for multiple partitions.- Parameters:
partitions- The partitions for which no offset is defined
-
-
Method Details
-
partitions
Returns all partitions for which no offsets are defined.- Specified by:
partitionsin classInvalidOffsetException- Returns:
- All partitions without offsets
-