コード例 #1
0
ファイル: Activemq.php プロジェクト: niallmccrudden/zf2
 /**
  * Subscribes the client to the queue.
  *
  * @param  \Zend\Queue\Queue $queue
  * @return void
  */
 protected function subscribe(Queue\Queue $queue)
 {
     $frame = $this->_client->createFrame();
     $frame->setCommand('SUBSCRIBE');
     $frame->setHeader('destination', $queue->getName());
     $frame->setHeader('ack','client');
     $this->_client->send($frame);
     $this->_subscribed[$queue->getName()] = TRUE;
 }