/** * @return AMQPProxyChannel * @throws AMQPServerException */ private function reconnect(Exception $amqpException) { try { $this->channel->getTransport()->setCurrent($this->channel->getTransport()->getAlive()); } catch (WrongArgumentException $e) { throw new AMQPServerException($amqpException->getMessage(), $amqpException->getCode(), $amqpException); } return $this; }
/** * @return AMQPIncomingMessage **/ public function getNextDelivery() { return $this->channel->getNextDelivery(); }
/** * @param AMQPChannelInterface $channel * @param string $label * @return AMQPChannelInterface */ protected function queueDelete(AMQPChannelInterface $channel, $label) { $this->assertTrue(isset(self::$queueList[$label])); $channelInterface = $channel->queueDelete(self::$queueList[$label]['name']); $this->assertInstanceOf('AMQPChannelInterface', $channelInterface); return $channelInterface; }