AMQPChannel::waitForConfirm PHP Method

waitForConfirm() public method

Note, this method also catch all basic.return message from server.
public waitForConfirm ( float $timeout )
$timeout float Timeout in seconds. May be fractional.
    public function waitForConfirm($timeout = 0.0)
    {
    }

Usage Example

Esempio n. 1
0
 /**
  * @inheritdoc
  */
 public function waitForConfirm(float $timeout = 0.0)
 {
     try {
         $this->channel->waitForConfirm($timeout);
     } catch (\AMQPChannelException $e) {
         throw ChannelException::fromAmqpExtension($e);
     } catch (\AMQPQueueException $e) {
         throw ChannelException::fromAmqpExtension($e);
     }
 }