AMQPChannel::qosSet the Quality Of Service settings for the given channel Description
public void AMQPChannel::qos
( int
$size
, int $count
)
Specify the amount of data to prefetch in terms of window size (octets) or number of messages from a queue during a AMQPQueue::consume or AMQPQueue::get method call. The client will prefetch data up to Setting either value to 0 will instruct the client to ignore that particular setting. A call to AMQPChannel::qos will overwrite any values set by calling AMQPChannel::setPrefetchSize and AMQPChannel::setPrefetchCount. If the call to either AMQPQueue::consume or AMQPQueue::get is done with the Parameters
Errors/ExceptionsThrows AMQPConnectionException if the connection to the broker was lost. Return Values
Returns |