Ejemplo n.º 1
0
 /**
  * @inheritdoc
  */
 public function waitForBasicReturn(float $timeout = 0.0)
 {
     try {
         $this->channel->waitForBasicReturn($timeout);
     } catch (\AMQPChannelException $e) {
         throw ChannelException::fromAmqpExtension($e);
     } catch (\AMQPQueueException $e) {
         throw ChannelException::fromAmqpExtension($e);
     }
 }
Ejemplo n.º 2
0
 /**
  * @inheritdoc
  */
 public function declareQueue() : int
 {
     try {
         return $this->queue->declareQueue();
     } catch (\AMQPQueueException $e) {
         throw QueueException::fromAmqpExtension($e);
     } catch (\AMQPChannelException $e) {
         throw ChannelException::fromAmqpExtension($e);
     }
 }