(PECL amqp >= Unknown)

AMQPChannel::setPrefetchSize — Set the window size to prefetch from the broker


public void AMQPChannel::setPrefetchSize ( int $size )

Set the prefetch window size, in octets, during a call to AMQPQueue::consume() or AMQPQueue::get(). Any call to this method will automatically set the prefetch message count to 0, meaning that the prefetch message count setting will be ignored.

If the call to either AMQPQueue::consume() or AMQPQueue::get() is done with the AMQP_AUTOACK flag set, this setting will be ignored.

Список параметров

size -

The window size, in octets, to prefetch.


Throws AMQPConnectionException if the connection to the broker was lost.

Возвращаемые значения

Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

Описание класса amqpchannel, примеры использования класса amqpchannel.

Смотрите также:
Описание на
Описание на




Новое за неделю

Сейчас на сайте: 2561

Rambler's Top100