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

setMessageOffset() public method

set messageSet fetch offset current
public setMessageOffset ( integer $offset ) : void
$offset integer
return void
    public function setMessageOffset($offset)
    {
        $this->currentOffset = $offset;
    }

Usage Example

Exemplo n.º 1
0
 /**
  * implements Iterator function
  *
  * @access public
  * @return integer
  */
 public function valid()
 {
     if (!$this->valid) {
         $this->partition->setMessageOffset($this->offset);
         // one partition iterator end
         \Kafka\Protocol\Fetch\Helper\Helper::onPartitionEof($this->partition);
     }
     return $this->valid;
 }