AMQPExchange
PHP Manual

AMQPExchange::bind

(PECL amqp >= Unknown)

AMQPExchange::bindBind to another exchange

Descrizione

public bool AMQPExchange::bind ( string $destination_exchange_name , string $source_exchange_name , string $routing_key )

Bind an exchange to another exchange using the specified routing key.

Elenco dei parametri

destination_exchange_name

The name of the destination exchange in the binding.

source_exchange_name

The name of the source exchange in the binding.

routing_key

The routing key to use as a binding.

Valori restituiti

Restituisce TRUE in caso di successo, FALSE in caso di fallimento.

Errori/Eccezioni

Throws AMQPExchangeException on failure.

Throws AMQPChannelException if the channel is not open.

Throws AMQPConnectionException if the connection to the broker was lost.


AMQPExchange
PHP Manual