Method | Description | |
---|---|---|
__construct ( AMQPConnection $amqp_connection ) | Create an instance of an AMQPChannel object. | |
basicRecover ( boolean $requeue = true ) | Redeliver unacknowledged messages. | |
close ( ) | Closes the channel. | |
commitTransaction ( ) : boolean | Commit a pending transaction. | |
confirmSelect ( ) | Set the channel to use publisher acknowledgements. This can only used on a non-transactional channel. | |
getChannelId ( ) : integer | Return internal channel ID | |
getConnection ( ) : AMQPConnection | Get the AMQPConnection object in use | |
getPrefetchCount ( ) : integer | Get the number of messages to prefetch from the broker. | |
getPrefetchSize ( ) : integer | Get the window size to prefetch from the broker. | |
isConnected ( ) : boolean | Check the channel connection. | |
qos ( integer $size, integer $count ) : boolean | Set the Quality Of Service settings for the given channel. | |
rollbackTransaction ( ) : boolean | Rollback a transaction. | |
setConfirmCallback ( callable $ack_callback = null, callable $nack_callback = null ) | Set callback to process basic.ack and basic.nac AMQP server methods (applicable when channel in confirm mode). | |
setPrefetchCount ( integer $count ) : boolean | Set the number of messages to prefetch from the broker. | |
setPrefetchSize ( integer $size ) : boolean | Set the window size to prefetch from the broker. | |
setReturnCallback ( callable $return_callback = null ) | Set callback to process basic.return AMQP server method | |
startTransaction ( ) : boolean | Start a transaction. | |
waitForBasicReturn ( float $timeout ) | Start wait loop for basic.return AMQP server methods | |
waitForConfirm ( float $timeout ) | Wait until all messages published since the last call have been either ack'd or nack'd by the broker. |
public __construct ( AMQPConnection $amqp_connection ) | ||
$amqp_connection | AMQPConnection | An instance of AMQPConnection with an active connection to a broker. |
public basicRecover ( boolean $requeue = true ) | ||
$requeue | boolean |
public commitTransaction ( ) : boolean | ||
return | boolean | TRUE on success or FALSE on failure. |
public confirmSelect ( ) |
public getChannelId ( ) : integer | ||
return | integer |
public getConnection ( ) : AMQPConnection | ||
return | AMQPConnection |
public getPrefetchCount ( ) : integer | ||
return | integer |
public getPrefetchSize ( ) : integer | ||
return | integer |
public isConnected ( ) : boolean | ||
return | boolean | Indicates whether the channel is connected. |
public rollbackTransaction ( ) : boolean | ||
return | boolean | TRUE on success or FALSE on failure. |
public setConfirmCallback ( callable $ack_callback = null, callable $nack_callback = null ) | ||
$ack_callback | callable | |
$nack_callback | callable | Callback functions with all arguments have the following signature: function ack_callback(int $delivery_tag, bool $multiple) : bool; function nack_callback(int $delivery_tag, bool $multiple, bool $requeue) : bool; and should return boolean false when wait loop should be canceled. Note, basic.nack server method will only be delivered if an internal error occurs in the Erlang process responsible for a queue (see https://www.rabbitmq.com/confirms.html for details). |
public setPrefetchCount ( integer $count ) : boolean | ||
$count | integer | The number of messages to prefetch. |
return | boolean | TRUE on success or FALSE on failure. |
public setPrefetchSize ( integer $size ) : boolean | ||
$size | integer | The window size, in octets, to prefetch. |
return | boolean | TRUE on success or FALSE on failure. |
public setReturnCallback ( callable $return_callback = null ) | ||
$return_callback | callable | Callback function with all arguments has the following signature: function callback(int $reply_code, string $reply_text, string $exchange, string $routing_key, AMQPBasicProperties $properties, string $body) : bool; and should return boolean false when wait loop should be canceled. |
public startTransaction ( ) : boolean | ||
return | boolean | TRUE on success or FALSE on failure. |
public waitForBasicReturn ( float $timeout ) | ||
$timeout | float | Timeout in seconds. May be fractional. |
public waitForConfirm ( float $timeout ) | ||
$timeout | float | Timeout in seconds. May be fractional. |