/// <summary> /// Request lowest and highest offsets for a topic partition from broker. /// </summary> public Task <Offsets> QueryWatermarkOffsets(TopicPartition topicPartition, TimeSpan timeout = default(TimeSpan)) => Task.FromResult(handle.QueryWatermarkOffsets(topicPartition.Topic, topicPartition.Partition, timeout));
/// <summary> /// Get last known low (oldest/beginning) and high (newest/end) offsets for partition. /// /// The low offset is updated periodically (if statistics.interval.ms is set) /// while the high offset is updated on each fetched message set from the broker. /// /// If there is no cached offset (either low or high, or both) then /// RD_KAFKA_OFFSET_INVALID will be returned for the respective offset. /// </summary> public Offsets GetWatermarkOffsets(TopicPartition topicPartition) => handle.GetWatermarkOffsets(topicPartition.Topic, topicPartition.Partition);