Exemplo n.º 1
0
 /**
  * Get the message payload
  * 
  * @return string|Kafka_MessageSetInternalIterator
  */
 public function payload()
 {
     return Kafka_Encoder::decompress($this->payload, $this->compression);
 }
Exemplo n.º 2
0
 /**
  * @expectedException Kafka_Exception_NotSupported
  */
 public function testDecompressUnknown()
 {
     $msg = 'test message';
     Kafka_Encoder::decompress($msg, 15);
     $this->fail('The above call should fail');
 }