setMessageOffset() public method

set messageSet fetch offset current
public setMessageOffset ( integer $offset ) : void
$offset integer
return void
Beispiel #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;
 }