Kafka\Protocol\Fetch\Partition::getMessageOffset PHP Метод

getMessageOffset() публичный Метод

get messageSet fetch offset current
public getMessageOffset ( ) : integer
Результат integer
    public function getMessageOffset()
    {
        return $this->currentOffset;
    }

Usage 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