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

search for in the

AMQPChannel::setPrefetchSize> <AMQPChannel::rollbackTransaction
[edit] Last updated: Fri, 17 May 2013

view this page in

AMQPChannel::setPrefetchCount

(PECL amqp >= Unknown)

AMQPChannel::setPrefetchCountSet the number of messages to prefetch from the broker

Descrierea

public void AMQPChannel::setPrefetchCount ( int $count )

Set the number of messages to prefetch from the broker during a call to AMQPQueue::consume() or AMQPQueue::get(). Any call to this method will automatically set the prefetch window size to 0, meaning that the prefetch window size 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.

Parametri

count

The number of messages to prefetch.

Erori/Excepții

Throws AMQPConnectionException if the connection to the broker was lost.

Valorile întoarse

Întoarce valoarea TRUE în cazul succesului sau FALSE în cazul eșecului.



add a note add a note User Contributed Notes AMQPChannel::setPrefetchCount - [0 notes]
There are no user contributed notes for this page.

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