Skip to main content

sow-and-delta-subscribe-oof

Including the basic AMPS library:

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

Constructing the command:

Command cmd = new Command(Message.Command.SOWAndDeltaSubscribe)
.setTopic(topic)
.setOptions(Message.Options.OOF +
Message.Options.NoEmpties)
;

The command can now be used in execute or executeAsync.