Skip to main content

sow-and-sub-simple-example

Importing the AMPS client library:

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

Constructing the command:

Command cmd = new Command(Message.Command.SOWAndSubscribe);
cmd.setTopic(topic);

The command can now be used in execute or executeAsync.