MAKS\AmqpAgent\Worker\ConsumerInterface::nack
Unacknowledges an AMQP message object.
Starting from v1.1.1, you can use php-amqplib AMQPMessage::nack() method instead.
Signature
public function nack(AMQPChannel
$_channel,
AMQPMessage
$_message,
[array
$parameters = NULL] )
Parameters
$_channel
— MAKS\AmqpAgent\Worker\AMQPChannel|null- [optional] The channel that should be used. The method will try using the channel attached with the message if no channel was specified, although there is no guarantee this will work as this depends on the way the message was fetched.
$_message
— PhpAmqpLib\Message\AMQPMessage- The message object that should be unacknowledged.
$parameters
— array- [optional] The overrides for the default exchange options.
Returns
- void