sow-ack-queue
Including the basic AMPS library:
import com.crankuptheamps.client.*;
import com.crankuptheamps.client.exception.*;
Acknowledging the messages for the comma-delimited set of bookmarks passed in:
Command cmd = new Command(Message.Command.SowDelete);
// Set topic
cmd.setTopic(topic);
// Set the messages to acknowledge
cmd.setBookmark(messageList);
The command can now be used in executeAsync with a null message handler.