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

getStream() public method

get current stream
public getStream ( ) : Socket
return Kafka\Socket
    public function getStream()
    {
        return $this->stream;
    }

Usage Example

Example #1
0
 /**
  * __construct
  *
  * @param \Kafka\Socket $stream
  * @param int $initOffset
  * @access public
  * @return void
  */
 public function __construct(\Kafka\Protocol\Fetch\Partition $partition, $context = array())
 {
     $this->stream = $partition->getStream();
     $this->partition = $partition;
     $this->context = $context;
     $this->messageSetSize = $this->getMessageSetSize();
 }
All Usage Examples Of Kafka\Protocol\Fetch\Partition::getStream