| Constructor and Description |
|---|
AcknowledgableDelivery(Delivery delivery,
Channel channel,
BiConsumer<Receiver.AcknowledgmentContext,Exception> exceptionHandler)
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.
|
getBody, getEnvelope, getPropertiespublic AcknowledgableDelivery(Delivery delivery, Channel channel, BiConsumer<Receiver.AcknowledgmentContext,Exception> exceptionHandler)
delivery - channel - exceptionHandler - public void ack(boolean multiple)
exceptionHandler is executed.multiple - Defines whether all messages up to and including the supplied delivery tag should be
acknowledged or not.public void ack()
exceptionHandler is executed.public void nack(boolean multiple,
boolean requeue)
exceptionHandler is executed.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)
exceptionHandler is executed.