AMQPExchange::delete

(PECL amqp >= Unknown)

AMQPExchange::deleteDelete the exchange from the broker.

Description

public void AMQPExchange::delete ([ string $exchange_name = NULL ] )

Delete and exchange from the broker.

Warning

This function is currently not documented; only its argument list is available.

Parameters

exchange_name

The name of the exchange to delete. If the AMQPExchange object is already bound to an existing exchange and then exchange_name is not specified, the exchange bound to the AMQPExchange object will be deleted.

Return Values

Examples

Example #1 AMQPExchange::delete() example

<?php

/* Create a new connection */
$cnn = new AMQPConnection();

/* Create a new exchange */
$ex = new AMQPExchange($cnn);
$ex->declare('new_topic_exchange'AMQP_DURABLE AMQP_AUTODELETE);

/* Delete the previous exchange */
$ex2 = new AMQPExchange($cnn);
$ex2->delete('new_topic_exchange');

?>


Copyright © 2010-2024 Platon Technologies, s.r.o.           Home | Man pages | tLDP | Documents | Utilities | About
Design by styleshout