(PECL amqp >= Unknown)
AMQPChannel::setPrefetchCount — Set the number of messages to prefetch from the broker
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.
The number of messages to prefetch.
Throws AMQPConnectionException if the connection to the broker was lost.
TRUE em caso de sucesso ou
FALSE em caso de falha.