Skip to main content

sow-delete-data

Including the basic AMPS library:

import com.crankuptheamps.client.*;
import com.crankuptheamps.client.exception.*;

Deleting the message that matches the message passed in:

Command cmd = new Command(Message.Command.SowDelete);

// Set topic
cmd.setTopic(topic);

// Set the message to remove
cmd.setData(data);

The command can now be used in executeAsync with a null message handler.