TsgcWSPClient_Kafka › Methods › GetLatestOffset
Returns the latest (next) offset of a topic/partition (the high watermark).
function GetLatestOffset(const aTopic: string; aPartition: Integer): Int64;
The latest offset is the high watermark, the offset that will be assigned to the next message produced to the topic/partition. The difference between this value and the committed offset indicates the consumer lag.
vOff := oKafka.GetLatestOffset('my-topic', 0);