DataSift_StreamConsumer::consume PHP Method

consume() public method

Once an instance of a StreamConsumer is ready for use, call this to start consuming. Extending classes should implement onStart to handle actually starting.
public consume ( boolean $auto_reconnect = true ) : void
$auto_reconnect boolean Whether to reconnect automatically
return void
    public function consume($auto_reconnect = true)
    {
        $this->_auto_reconnect = $auto_reconnect;
        // Start consuming
        $this->_state = self::STATE_STARTING;
        $this->onStart();
    }