downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

AMQPExchange::getArgument> <AMQPExchange::declare
[edit] Last updated: Fri, 17 May 2013

view this page in

AMQPExchange::delete

(PECL amqp >= Unknown)

AMQPExchange::deleteEliminar el intercambio del corredor.

Descripción

public bool AMQPExchange::delete ([ int $flags = AMQP_NOPARAM ] )

Eliminar y el intercambio de la agente.

Parámetros

flags

Opcionalmente AMQP_IFUNUSED se puede especificar para indicar el cambio no debe ser eliminado hasta que no haya clientes conectados a él.

Errores/Excepciones

Throws AMQPExchangeException on failure.

Throws AMQPChannelException if the channel is not open.

Throws AMQPConnectionException if the connection to the broker was lost.

Valores devueltos

Devuelve TRUE en caso de éxito o FALSE en caso de error.

Ejemplos

Ejemplo #1 AMQPExchange::delete()ejemplo

<?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 - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites