/**
  * Sets up a channel and exchange for results.
  *
  * @returns void
  */
 private function setupResultQueues()
 {
     Common::$lg->addDebug(sprintf("Setting up %d result queues", $this->amqNumQueues));
     $this->resultChannel = $this->amqConnection->channel();
     $this->resultExchange = sprintf(Constants\RPC::REQUEST_NAME, $this->appName);
     $this->resultChannel->exchange_declare($this->resultExchange, Constants\RPC::RESULT_EXCHANGE_TYPE, false, true, false);
     Common::$lg->addDebug("Finished setting up result queues");
 }
 protected function send_method_frame($method_sig, $args = "")
 {
     $this->connection->send_channel_method_frame($this->channel_id, $method_sig, $args);
 }
 public function __construct($boardindexer)
 {
     parent::__construct($boardindexer);
 }
 public function __construct(Messagestream $uplink)
 {
     parent::__construct($uplink->getBoardIndexer());
     $this->uplink = $uplink;
 }
Exemple #5
0
 /**
  * Regenerates a channel
  *
  * @return AMQPChannel Old channel
  */
 public function regenerateChannel()
 {
     $channel = $this->channel;
     $this->channel = $this->amqp->channel();
     return $channel;
 }