getStream() public method

get current stream
public getStream ( ) : Socket
return Kafka\Socket
Beispiel #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();
 }
Beispiel #2
0
 /**
  * __construct
  *
  * @param Partition $partition
  * @param array     $context
  *
  * @access public
  */
 public function __construct(Partition $partition, $context = array())
 {
     $this->stream = $partition->getStream();
     $this->partition = $partition;
     $this->context = $context;
     $this->messageSetSize = $this->getMessageSetSize();
     Log::log("messageSetSize: {$this->messageSetSize}", LOG_INFO);
 }