AMPS C# Client
5.3.3.4
AMPS C# Client for .NET
|
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() and executeAsync() methods. Command is designed to be used as a "builder" enabling AMPS commands to be built easily, for example: More...
Public Member Functions | |||
string | getSOWKeys () | ||
| |||
string | getSowKeys () | ||
| |||
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 () | ||
| |||
string | getSowKey () | ||
| |||
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 () | ||
| |||
bool | isSow () | ||
| |||
bool | needsSequenceNumber () | ||
| |||
Command () | |||
Create a new Command with no command type or arguments set. More... | |||
Command (Message.Commands command_) | |||
Create a Command with the Command field set. 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 () | ||
| |||
Command | setCommandId (CommandId commandId) | ||
| |||
CommandId | getQueryId () | ||
| |||
Command | setQueryId (CommandId queryId) | ||
| |||
Message.Commands | getCommand () | ||
| |||
Command | setCommand (Message.Commands command) | ||
| |||
string | getTopic () | ||
| |||
Command | setTopic (string topic) | ||
| |||
Command | setTopic (byte[] topic, int offset, int length) | ||
string | getFilter () | ||
| |||
Command | setFilter (string filter) | ||
| |||
string | getOrderBy () | ||
| |||
Command | setOrderBy (string orderBy) | ||
| |||
CommandId | getSubId () | ||
| |||
Command | setSubId (CommandId subId) | ||
| |||
Command | setSubId (string subId) | ||
| |||
string | getBookmark () | ||
| |||
Command | setBookmark (string bookmark) | ||
| |||
string | getOptions () | ||
| |||
Command | setOptions (string options) | ||
| |||
Message.AckTypes | getAckType () | ||
| |||
Command | setAckType (Message.AckTypes ackType) | ||
| |||
Command | addAckType (Message.AckTypes ackType) | ||
Adds an additional ackType to the ackTypes already set for this Command. More... | |||
string | getData () | ||
| |||
Command | setData (string data) | ||
| |||
Command | setData (byte[] data, int offset, int length) | ||
Command | setData (CompositeMessageBuilder builder) | ||
Set the data for this command. More... | |||
long | getTimeout () | ||
| |||
Command | setTimeout (long timeout) | ||
| |||
int | getTopN () | ||
| |||
Command | setTopN (int topN) | ||
| |||
int | getBatchSize () | ||
| |||
Command | setBatchSize (int batchSize) | ||
| |||
int | getExpiration () | ||
| |||
bool | hasExpiration () | ||
| |||
Command | setExpiration (int expiration) | ||
| |||
void | unsetExpiration () | ||
Clears any expiration value set on self. | |||
Command | setClientSequenceNumber (ulong seqNumber) | ||
ulong | getClientSequenceNumber () | ||
| |||
Command | setCorrelationId (String correlationId_) | ||
String | getCorrelationId () | ||
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() and 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"))) { ... }
|
inline |
Create a new Command with no command type or arguments set.
|
inline |
Create a Command with the Command field set.
command_ | A Message.Commands value indicating the AMPS command. |
|
inline |
|
inline |
Adds an additional ackType to the ackTypes already set for this Command.
ackType | the ackType to add |
|
inline |
Resets this command with a new Command type and re-initializes all other fields.
command_ | A Message.Commands value indicating the AMPS command. |
|
inline |
|
inline |
data | The raw bytes to be used for the data. |
offset | The offset into data where the data begins. |
length | The length of the data. |
|
inline |
Set the data for this command.
builder | A CompositeMessageBuilder to set self's data from. |
|
inline |
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.
sowKey | the sow keys to set |
|
inline |
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.
sowKey | the sow keys to set |
|
inline |
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.
sowKeys | the sow keys to set |
|
inline |
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.
sowKeys | the sow keys to set |
|
inline |
topic | The raw bytes to be used for the topic. |
offset | The offset into topic where the topic data begins |
length | The length of the topic. |