AMQPExchange
在线手册:中文  英文

AMQPExchange::bind

(PECL amqp >= Unknown)

AMQPExchange::bindBind to another exchange

说明

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.

参数

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.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

错误/异常

Throws AMQPExchangeException on failure.

Throws AMQPChannelException if the channel is not open.

Throws AMQPConnectionException if the connection to the broker was lost.


AMQPExchange
在线手册:中文  英文

用户评论:

maik dot penz at foobugs dot com (2012-11-05 16:01:59)

At least the current version (1.0.7) uses
function bind($exchangeName, $routingKey[, $flags]);

易百教程