Package io.micronaut.messaging
Interface Acknowledgement
-
public interface AcknowledgementA contract that allows for responding to messages.- Since:
- 1.1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidack()Acknowledges the message.voidnack()Rejects the message.
-
-
-
Method Detail
-
ack
void ack() throws MessageAcknowledgementException
Acknowledges the message.- Throws:
MessageAcknowledgementException- if an error occurred acknowledging the message
-
nack
void nack() throws MessageAcknowledgementException
Rejects the message.- Throws:
MessageAcknowledgementException- if an error occurred rejecting the message
-
-