/** * @return AMQPChannelInterface **/ public function queueBind($name, $exchange, $routingKey) { try { return $this->channel->queueBind($name, $exchange, $routingKey); } catch (AMQPServerException $e) { return $this->transportReconnect($e)->queueBind($name, $exchange, $routingKey); } }
/** * @param AMQPChannelInterface $channel * @param string $label * @return AMQPChannelInterface */ protected function queueBind(AMQPChannelInterface $channel, $label) { $this->assertTrue(isset(self::$queueList[$label])); $channelInterface = $channel->queueBind(self::$queueList[$label]['name'], self::$queueList[$label]['exchange'], self::$queueList[$label]['key']); $this->assertInstanceOf('AMQPChannelInterface', $channelInterface); return $channelInterface; }