To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorControlling requeue on message nack
You can control whether or not a message is requeued when you nack the message.
Exact behavior when requeue is false is specific to your broker's setup.
- Background
-
- Given
- I am connected to the broker
- And
- I have a destination :source_queue
- And
-
I have the following messages on :source_queue
body Test Message
- Scenarios
-
- Requeue by default
-
- When
-
I execute the following code
message = MessageDriver::Client.pop_message(:source_queue, client_ack: true) message.nack
- Then
-
I expect to find the following message on :source_queue
body Test Message
- Requeue is true
-
- When
-
I execute the following code
message = MessageDriver::Client.pop_message(:source_queue, client_ack: true) message.nack(requeue: true)
- Then
-
I expect to find the following message on :source_queue
body Test Message
- Requeue is false
-
- When
-
I execute the following code
message = MessageDriver::Client.pop_message(:source_queue, client_ack: true) message.nack(requeue: false)
- Then
- I expect to find no messages on :source_queue
Last published over 7 years ago by soupmatt.