The name of the command.
Sets the acknowledgements requested for the command. Multiple ack types should be comma-delimited. The acknowledgement messages will be delivered to the message handler.
The acknowledgement message type(s).
The updated Command object.
Returns the acknowledgement message type(s).
The acknowledgement message type(s).
Sets the number of messages that are batched together when returning a query result. If it's not set, it is
10
by default.
The batch size value.
The updated Command object.
Returns the batch size value.
The batch size value.
Sets the client-originated identifier used to mark a location in journaled messages.
The bookmark value.
The updated Command object.
Returns the bookmark value.
The bookmark value.
Sets the command e.g. 'publish', 'sow_and_subscribe', to be executed. The following commands are available:
The command name value.
The updated Command object.
Returns the Command name.
The Command name value.
Sets the Client-specified command id. The command id is returned by the engine in responses to commands to allow the client to correlate the response to the command.
The command id value.
The updated Command object.
Returns the command id.
The command id value.
Sets the opaque token set by an application and returned with the message.
The correlationId value.
The updated Command object.
Returns the correlationId value.
The correlationId value.
Sets the command data (message payload). Makes sense only for publish
, delta_publish
, and sow_delete
commands.
The Command data (message payload).
The updated Command object.
Returns the Command data (message payload).
The Command data (message payload).
Sets the SOW expiration time (in seconds) if used in publish
.
The command expiration value (in seconds).
The updated Command object.
Returns the command expiration value (in seconds).
The command expiration value.
Sets the content filter expression.
The filter value.
The updated Command object.
Returns the filter value.
The filter value.
Sets the (comma-delimited) string of options on a specific Command.
The options (comma-delimited) string value.
The updated Command object.
Returns the options (comma-delimited) string value.
The options (comma-delimited) string value.
Sets the SOW topic key(s) by which to order SOW query.
The orderBy value.
The updated Command object.
Returns the orderBy value.
The orderBy value.
Sets the SOW Query identifier set by client to identify a query.
The query id.
The updated Command object.
Returns the query id.
The query id.
Sets the sequenceId value. SequenceId is an integer that corresponds to the publish message sequence number. For more information see the Replication section in the User Guide.
The sequenceId value.
The updated Command object.
Returns the sequenceId value.
The sequenceId value.
Sets the sow key value. A SOW key will accompany each message returned in an SOW batch. A SowKey may also be added to messages coming in on a subscription when the published message matches a record in the SOW.
Format:
OR
The sow key value.
The updated Command object.
Returns the sow key value.
The sow key value.
Sets the sowKeys as a comma-delimited value.
The sow keys value.
The updated Command object.
Returns the sowKeys value.
The sowKeys value.
Sets the subscription identifier set by server when processing a subscription.
The subscription id.
The updated Command object.
Returns the subscription id.
The subscription id.
Sets the subIds - a comma-separated list of subscription ids sent from AMPS engine to identify which client
subscriptions match a given publish
message.
The subIds (comma-delimited) value.
The updated Command object.
Returns the subIds (comma-delimited) value.
The subIds (comma-delimited) value.
Sets the number of records to return.
Note: If TopN
is not equally divisible by the BatchSize
value, then more records will be returned so that the
total number of records is equally divisible by the BatchSize
setting.
The top N value.
The updated Command object.
Returns the top N value.
The top N value.
Sets the topic value.
The topic value.
The updated Command object.
Returns the topic value.
The topic value.
The Command class encapsulates the AMPS Command entity. The JavaScript client sends Command objects to the server and receives Message objects from the server.