TsgcWSPClient_KafkaMethods › GetEarliestOffset

GetEarliestOffset Method

Returns the earliest (oldest) available offset of a topic/partition.

Syntax

function GetEarliestOffset(const aTopic: string; aPartition: Integer): Int64;

Parameters

Remarks

The earliest offset is the oldest message offset still retained by the broker for the given topic/partition. Messages older than this offset have already been removed by the broker's retention policy.

Example

vOff := oKafka.GetEarliestOffset('my-topic', 0);

Back to Methods