Class InvalidOffsetException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.kafka.common.KafkaException
org.apache.kafka.clients.consumer.InvalidOffsetException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
NoOffsetForPartitionException, OffsetOutOfRangeException
Thrown when the offset for a set of partitions is invalid (either undefined or out of range),
and no reset policy has been configured.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidOffsetException(String message) Constructs a new InvalidOffsetException with the specified detail message. -
Method Summary
Modifier and TypeMethodDescriptionabstract Set<TopicPartition> Returns the set of partitions for which the offset was invalid.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidOffsetException
Constructs a new InvalidOffsetException with the specified detail message.- Parameters:
message- The detail message
-
-
Method Details
-
partitions
Returns the set of partitions for which the offset was invalid.- Returns:
- The set of partitions with invalid offsets
-