AMQPExchange::delete PHP Метод

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

Delete the exchange from the broker.
public delete ( string $exchangeName = null, integer $flags = AMQP_NOPARAM ) : boolean
$exchangeName string Optional name of exchange to delete.
$flags integer Optionally AMQP_IFUNUSED can be specified to indicate the exchange should not be deleted until no clients are connected to it.
Результат boolean true on success or false on failure.
    public function delete($exchangeName = null, $flags = AMQP_NOPARAM)
    {
    }

Usage Example

Пример #1
0
 /**
  * @param string $exchangeName
  * @param int    $flags
  *
  * @return bool
  */
 public function delete($exchangeName = null, $flags = Client::NOPARAM)
 {
     try {
         return $this->rawExchange->delete($exchangeName, $flags);
     } catch (\Exception $e) {
         ClientHelper::throwRightException($e);
     }
 }
All Usage Examples Of AMQPExchange::delete