AMQPQueue
PHP Manual

AMQPQueue::cancel

(PECL amqp >= Unknown)

AMQPQueue::cancelCancel a queue binding.

说明

public bool AMQPQueue::cancel ([ string $consumer_tag = "" ] )

Cancel a queue that is already bound to an exchange and routing key.

参数

consumer_tag

The queue name to cancel, if the queue object is not already representative of a queue.

错误/异常

Throws AMQPChannelException if the channel is not open.

Throws AMQPConnectionException if the connection to the broker was lost.

返回值

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


AMQPQueue
PHP Manual