subscribe-bookmark-rate
Import the AMPS library:
import AMPS
Construct the command:
cmd = AMPS.Command(AMPS.Message.Command.Subscribe)
cmd.set_topic(topic)
# Set consistent ID for recovery purposes
cmd.set_sub_id(subId)
# Start at the recovery point in the bookmark store
cmd.set_bookmark(AMPS.Client.Bookmarks.MOST_RECENT)
# Set options for replay: in this case, maximum of 10,000
# messages/sec for this subscription
cmd.set_options(AMPS.Message.Options.Rate('10000'))
The command can now be used in execute or execute_async.