Kafka\Protocol\Fetch\Partition::getMessageOffset PHP Method

getMessageOffset() public method

get messageSet fetch offset current
public getMessageOffset ( ) : integer
return integer
    public function getMessageOffset()
    {
        return $this->currentOffset;
    }

Usage Example

Example #1
0
 /**
  * @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);
 }
All Usage Examples Of Kafka\Protocol\Fetch\Partition::getMessageOffset