getOffset
public function getOffset(): int {}
Get offset of topic partition
$topicPartition = new SimpleKafkaClient\TopicPartiton('test-topic', 0, 100);
echo sprintf('TopicPartition offset %d', $topicPartition->getOffset()) . PHP_EOL;
public function getOffset(): int {}
Get offset of topic partition
$topicPartition = new SimpleKafkaClient\TopicPartiton('test-topic', 0, 100);
echo sprintf('TopicPartition offset %d', $topicPartition->getOffset()) . PHP_EOL;