Interface MessageAcknowledger

All Known Subinterfaces:
Consumer<T>

public interface MessageAcknowledger
The interface to acknowledge one or more messages individually or cumulatively.

It contains two methods of various overloads: - `acknowledge`: acknowledge individually - `acknowledgeCumulative`: acknowledge cumulatively Each of them has an associated asynchronous API that has the "Async" suffix in the name.

The 1st method parameter is - MessageId or Message when acknowledging a single message - List<MessageId> or Messages when acknowledging multiple messages

The 2nd method parameter is optional. Specify a non-null Transaction instance for transaction usages: - After the transaction is committed, the message will be actually acknowledged (individually or cumulatively). - After the transaction is aborted, the message will be redelivered.

See Also: