TsgcWSPClient_Kafka › Methods › GetEarliestOffset
Returns the earliest (oldest) available offset of a topic/partition.
function GetEarliestOffset(const aTopic: string; aPartition: Integer): Int64;
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.
vOff := oKafka.GetEarliestOffset('my-topic', 0);