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

search for in the

AMQPChannel::startTransaction> <AMQPChannel::setPrefetchCount
[edit] Last updated: Fri, 30 Nov 2012

view this page in

AMQPChannel::setPrefetchSize

(PECL amqp >= Unknown)

AMQPChannel::setPrefetchSizeSet the window size to prefetch from the broker

Opis

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.

Parametry

size

The window size, in octets, to prefetch.

Błędy/Wyjątki

Throws AMQPConnectionException if the connection to the broker was lost.

Zwracane wartości

Zwraca TRUE w przypadku powodzenia, FALSE w przypadku błędu.



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

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