Skip to main content

subscribe-filter

Importing the AMPS client library:

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

Constructing the command:

Command cmd = new Command(Message.Command.Subscribe);
cmd.setTopic(topic).setFilter(filter);

The command can now be used in execute or executeAsync.