@@ 1270-1283 (lines=14) @@ | ||
1267 | * @throws \PhpAmqpLib\Exception\AMQPTimeoutException if the specified operation timeout was exceeded |
|
1268 | * @return mixed |
|
1269 | */ |
|
1270 | public function basic_qos($prefetch_size, $prefetch_count, $a_global) |
|
1271 | { |
|
1272 | list($class_id, $method_id, $args) = $this->protocolWriter->basicQos( |
|
1273 | $prefetch_size, |
|
1274 | $prefetch_count, |
|
1275 | $a_global |
|
1276 | ); |
|
1277 | ||
1278 | $this->send_method_frame(array($class_id, $method_id), $args); |
|
1279 | ||
1280 | return $this->wait(array( |
|
1281 | $this->waitHelper->get_wait('basic.qos_ok') |
|
1282 | ), false, $this->channel_rpc_timeout); |
|
1283 | } |
|
1284 | ||
1285 | /** |
|
1286 | * Confirms QoS request |
|
@@ 1299-1307 (lines=9) @@ | ||
1296 | * @throws \PhpAmqpLib\Exception\AMQPTimeoutException if the specified operation timeout was exceeded |
|
1297 | * @return mixed |
|
1298 | */ |
|
1299 | public function basic_recover($requeue = false) |
|
1300 | { |
|
1301 | list($class_id, $method_id, $args) = $this->protocolWriter->basicRecover($requeue); |
|
1302 | $this->send_method_frame(array($class_id, $method_id), $args); |
|
1303 | ||
1304 | return $this->wait(array( |
|
1305 | $this->waitHelper->get_wait('basic.recover_ok') |
|
1306 | ), false, $this->channel_rpc_timeout); |
|
1307 | } |
|
1308 | ||
1309 | /** |
|
1310 | * Confirm the requested recover |