Skip to main content

sow-and-subscribe-history-filter

Including the basic AMPS library:

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

Constructing the command:

Command cmd = new Command(Message.Command.SOWAndSubscribe)
.setTopic(topic)
.setBookmark("20251231T010101")
.setFilter("/id > 1")
;

The command can now be used in execute or executeAsync.