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