Skip to main content
Version: 3.x

IMessageConsumer.QueryWatermarkOffsets method

Query the Kafka cluster for low (oldest available/beginning) and high (newest/end) offsets for the specified topic/partition. This is a blocking call - always contacts the cluster for the required information.

public WatermarkOffsets QueryWatermarkOffsets(TopicPartition topicPartition, TimeSpan timeout)
parameterdescription
topicPartitionThe topic/partition of interest.
timeoutThe maximum period of time the call may block.

Return Value

The requested WatermarkOffsets (see that class for additional documentation).

See Also