public class AcknowledgableDelivery
extends com.rabbitmq.client.Delivery
Delivery that can be manually acknowledged or rejected.| Constructor and Description |
|---|
AcknowledgableDelivery(com.rabbitmq.client.Delivery delivery,
com.rabbitmq.client.Channel channel)
Made public only for testing purposes.
|
| Modifier and Type | Method and Description |
|---|---|
void |
ack()
Acknowledges this message if it has not been previously acked or nacked.
|
void |
ack(boolean multiple)
Acknowledges this message if it has not been previously acked or nacked.
|
void |
nack(boolean requeue)
Rejects this message if it has not been previously acked or nacked.
|
void |
nack(boolean multiple,
boolean requeue)
Rejects this message if it has not been previously acked or nacked.
|
public AcknowledgableDelivery(com.rabbitmq.client.Delivery delivery,
com.rabbitmq.client.Channel channel)
delivery - channel - public void ack(boolean multiple)
multiple - Defines whether all messages up to and including the supplied delivery tag should be
acknowledged or not.public void ack()
public void nack(boolean multiple,
boolean requeue)
multiple - Defines whether all messages up to and including the supplied delivery tag should be
rejected or not.requeue - Defines if the message should be added to the queue again instead of being discarded.public void nack(boolean requeue)