public getMessageOffset ( ) : integer | ||
return | integer |
public function getMessageOffset()
{
return $this->currentOffset;
}
/** * @param \Kafka\Protocol\Fetch\Partition $partition */ public function onPartitionEof($partition) { $partitionId = $partition->key(); $topicName = $partition->getTopicName(); $offset = $partition->getMessageOffset(); $this->consumer->setFromOffset(true); $this->consumer->setPartition($topicName, $partitionId, $offset + 1); }