public interface RabbitAcknowledgement
extends io.micronaut.messaging.Acknowledgement
Modifier and Type | Method and Description |
---|---|
default void |
ack() |
void |
ack(boolean multiple)
Acknowledges this message.
|
default void |
nack() |
void |
nack(boolean multiple,
boolean reQueue)
Rejects this message.
|
default void ack() throws io.micronaut.messaging.exceptions.MessageAcknowledgementException
ack
in interface io.micronaut.messaging.Acknowledgement
io.micronaut.messaging.exceptions.MessageAcknowledgementException
default void nack() throws io.micronaut.messaging.exceptions.MessageAcknowledgementException
nack
in interface io.micronaut.messaging.Acknowledgement
io.micronaut.messaging.exceptions.MessageAcknowledgementException
void ack(boolean multiple) throws io.micronaut.messaging.exceptions.MessageAcknowledgementException
multiple
- If true, also acknowledge previous messagesio.micronaut.messaging.exceptions.MessageAcknowledgementException
- If an error occurredvoid nack(boolean multiple, boolean reQueue) throws io.micronaut.messaging.exceptions.MessageAcknowledgementException
multiple
- If true, also reject previous messagesreQueue
- Re-queue the message to be consumed againio.micronaut.messaging.exceptions.MessageAcknowledgementException
- If an error occurred