|
string | getSOWKeys () |
| - Returns
- The SOW Keys.
|
|
string | getSowKeys () |
| Returns the SOW keys on this command. More...
|
|
Command | setSOWKeys (string sowKeys) |
| The SowKeys for a command are a comma-separated list of the keys that AMPS assigns to SOW messages. The SOW key for a message is available through the Message#getSowKeys method on a message. More...
|
|
Command | setSowKeys (string sowKeys) |
| The SowKeys for a command are a comma-separated list of the keys that AMPS assigns to SOW messages. The SOW key for a message is available through the Message#getSowKeys method on a message. More...
|
|
string | getSOWKey () |
| - Returns
- the SOW Key
|
|
string | getSowKey () |
| Retrieves the State of the World (SOW) key associated with this instance. More...
|
|
Command | setSOWKey (string sowKey) |
| The SowKey for a command are a comma-separated list of the keys that AMPS assigns to SOW messages. The SOW key for a message is available through the Message#getSowKey method on a message. More...
|
|
Command | setSowKey (string sowKey) |
| The SowKey for a command are a comma-separated list of the keys that AMPS assigns to SOW messages. The SOW key for a message is available through the Message#getSowKey method on a message. More...
|
|
bool | isSubscribe () |
| Checks if the current command represents a subscription. More...
|
|
bool | isSow () |
| Checks if the current command represents a State of the World (SOW) operation. More...
|
|
bool | needsSequenceNumber () |
| Checks whether a sequence number is needed for this message based on the message command. More...
|
|
| Command () |
| Create a new Command with no command type or arguments set. Provides a starting point for creating 'Command' objects. More...
|
|
| Command (Message.Commands command_) |
| Initializes a new instance of the Command class with the specified AMPS command type. More...
|
|
| Command (string command_) |
| Create a Command with the Command field set. More...
|
|
Command | reset (Message.Commands command_) |
| Resets this command with a new Command type and re-initializes all other fields. More...
|
|
Command | reset (string command_) |
| Resets this command with a new Command type and re-initializes all other fields. More...
|
|
CommandId | getCommandId () |
| Gets the automatically generated command ID associated with this command. More...
|
|
Command | setCommandId (CommandId commandId) |
| Sets the command ID for this command. More...
|
|
CommandId | getQueryId () |
| Retrieve the query identifier associated with the 'Command' object. This method is used to access the identifier set by the 'setQueryId' method when needed. It allows you to read or obtain the QueryId for tracking, monitoring, or correlating messages within the messaging system. More...
|
|
Command | setQueryId (CommandId queryId) |
| Set a custom QueryId for this Command. The QueryId is a unique identifier that you can assign to this command. You have the option to set this independently of the Command so customizing the QueryId provides flexibility as you can assign QueryIds based on application-specific logic. When the QueryId is independent of the Command in AMPS, it means you are not bound by the CommandId for assigning QueryIds. Instead, you have the freedom to create custom identifiers for queries and messages, which can be valuable when you have scenarios when you need to correlate responses from different types of queries based on shared attributes other than the CommandId. More...
|
|
Message.Commands | getCommand () |
| Gets the AMPS command type associated with this command. More...
|
|
Command | setCommand (Message.Commands command) |
| Sets the AMPS command type for this command. More...
|
|
string | getTopic () |
| Gets the topic associated with this command. More...
|
|
Command | setTopic (string topic) |
| Sets the topic for this command using a string representation. More...
|
|
Command | setTopic (byte[] topic, int offset, int length) |
| Sets the topic for this command using raw bytes, offset, and length. More...
|
|
string | getFilter () |
| Gets the filter associated with this command. More...
|
|
Command | setFilter (string filter) |
| Sets the filter for this command. More...
|
|
string | getOrderBy () |
| Gets the orderBy associated with this command. More...
|
|
Command | setOrderBy (string orderBy) |
| Sets the orderBy for this command. More...
|
|
CommandId | getSubId () |
| Get the subId set on this command. More...
|
|
Command | setSubId (CommandId subId) |
| Sets the subId for this command. More...
|
|
Command | setSubId (string subId) |
| Sets the subId for this command using a string representation. More...
|
|
string | getBookmark () |
| Gets the bookmark associated with this command. More...
|
|
Command | setBookmark (string bookmark) |
| Sets the bookmark for this command. More...
|
|
string | getOptions () |
| Gets the options associated with this command. More...
|
|
Command | setOptions (string options) |
| Set the options for this command. Options are a comma-delimited list. More...
|
|
Message.AckTypes | getAckType () |
| Gets the ackType associated with this command. More...
|
|
Command | setAckType (Message.AckTypes ackType) |
| Sets the ackType for this command. Different ackTypes are supported for each command. See the Command Reference for details. More...
|
|
Command | addAckType (Message.AckTypes ackType) |
| Adds an additional ackType to the ackTypes already set for this Command. More...
|
|
string | getData () |
| Gets the data associated with this command. More...
|
|
Command | setData (string data) |
| Sets the data for this command. More...
|
|
Command | setData (byte[] data, int offset, int length) |
| Sets the raw data for this command. More...
|
|
Command | setData (CompositeMessageBuilder builder) |
| Set the data for this command. More...
|
|
long | getTimeout () |
| Gets the timeout associated with this command. More...
|
|
Command | setTimeout (long timeout) |
| Set the timeout for this command (in milliseconds). If the client does not receive and consume a processed ack within the specified timeout, this method throws an exception. Notice that the timeout is monitored in the AMPS client, not on the server, and the client receive thread receives and consumes the ack from the server. More...
|
|
int | getTopN () |
| Get the topN value for this command. - Returns
- The topN.
|
|
Command | setTopN (int topN) |
| Sets the top_n header for this command. This parameter sets a maximum number of records returned by a SOW query. This should usually be set as part of the command's options string, rather than using this method. - Parameters
-
- Returns
- The current instance of Command.
|
|
int | getBatchSize () |
| Get the batchSize set on this command. More...
|
|
Command | setBatchSize (int batchSize) |
| Set the batchSize for this command. This sets the number of records returned in a batch during a SOW query. More...
|
|
int | getExpiration () |
| Get the expiration set on this command. This method returns 0 if no expiration is set. Use Command#hasExpiration()to check if an expiration is set. More...
|
|
bool | hasExpiration () |
| Returns true if this command has an expiration set. More...
|
|
Command | setExpiration (int expiration) |
| Set the expiration for this command. For a publish command to a SOW topic or a queue, the expiration sets the amount of time to retain the message in the SOW or the queue. More...
|
|
void | unsetExpiration () |
| Clears any expiration value set on self. More...
|
|
Command | setClientSequenceNumber (ulong seqNumber) |
| Sets the client sequence number for this command. More...
|
|
ulong | getClientSequenceNumber () |
| Get the client sequence number set on this command. More...
|
|
Command | setCorrelationId (String correlationId_) |
| Sets the correlation Id for this command. The correlation ID is an arbitrary string that can be used for whatever purpose the application needs. It is not interpreted or used by AMPS. However, the correlation ID must only contain characters that are valid base64 encoded characters. More...
|
|
String | getCorrelationId () |
| Gets the correlation ID set with this command. More...
|
|
Command is an encapsulation of a single AMPS command sent by the client. Using Command you can build valid commands to be executed either synchronously or asynchronously via the Client execute() method or asynchronously via the executeAsync() methods.
Command is designed to be used as a "builder" enabling AMPS commands to be built easily, for example:
Client client = new Client(...);
for(Message m : client.execute(new Command("sow").setTopic("topic"))) { ... }