AMQPExchange::getChannel PHP Метод

getChannel() публичный Метод

Get the AMQPChannel object in use
public getChannel ( ) : AMQPChannel
Результат AMQPChannel
    public function getChannel()
    {
    }

Usage Example

Пример #1
0
 /**
  * Attempts to reconnect on a dead connection
  * Usable for long running processes, where the stale connections get collected
  * after some time
  *
  * @return void
  */
 protected function reconnect()
 {
     $connection = $this->exchange->getConnection();
     $channel = $this->exchange->getChannel();
     $connection->reconnect();
     // since the channel is also dead, need to somehow revive it. This can be
     // done only by calling the constructor of the channel
     $channel->__construct($connection);
 }
All Usage Examples Of AMQPExchange::getChannel