suche nach in der

AMQPExchange::publish> <AMQPExchange::declare
Last updated: Sat, 07 Jan 2012

view this page in

AMQPExchange::delete

(PECL amqp >= Unknown)

AMQPExchange::deleteDelete the exchange from the broker.

Beschreibung

public bool AMQPExchange::delete ([ string $exchange_name = NULL [, int $params = 0 ]] )

Delete and exchange from the broker.

Warnung

Diese Funktion ist bis jetzt nicht dokumentiert. Es steht nur die Liste der Argumente zur Verfügung.

Parameter-Liste

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.

params

Optionally AMQP_IFUNUSED can be specified to indicate the exchange should not be deleted until no clients are connected to it.

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

Beispiele

Beispiel #1 AMQPExchange::delete() example

<?php

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

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

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

?>



add a note add a note User Contributed Notes
AMQPExchange::delete
There are no user contributed notes for this page.

AMQPExchange::publish> <AMQPExchange::declare
Last updated: Sat, 07 Jan 2012