rd_kafka_get_watermark_offsets

@brief 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.

Offsets are returned in \p *low and \p *high respectively.

@returns RD_KAFKA_RESP_ERR_NO_ERROR on success or an error code on failure.

@remark Shall only be used with an active consumer instance.

extern (C) nothrow @nogc
rd_kafka_get_watermark_offsets
(,
const(char)* topic
,
int32_t partition
,
int64_t* low
,
int64_t* high
)

Meta