Skip to main content

sow-ack-queue

Including the basic AMPS library:

#include <amps/ampsplusplus.hpp>

Acknowledging the messages for the comma-delimited set of bookmarks passed in:


AMPS::Command cmd(AMPS::Message::Command::SowDelete);

// Set the queue topic and the bookmarks of the messages to
// acknowledge.

cmd.setTopic(topic).setBookmark(messageList);

The command can now be used in executeAsync with a default-constructed (empty) MessageHandler.