AMPS C# Client
5.3.3.4
AMPS C# Client for .NET
|
Classes | |
class | Bookmarks |
class | ConnectionStateChangedEventArgs |
class | Version |
Public Types | |
enum class | GlobalCommandTypeHandlers : int { Publish = 0 , SOW = 1 , GroupBegin = 2 , GroupEnd = 3 , Heartbeat = 4 , OOF = 5 , Ack = 6 , LastChance = 7 , DuplicateMessage = 8 , COUNT = 9 } |
Used to specify what type of command should be directed to a global handler when it is set. All messages of this type will be sent to the handler in addition to any handlers set for the specific command, subscription, or query id in the message. More... | |
Public Member Functions | |||||
delegate void | ExceptionListener (Exception e) | ||||
Client (String name) | |||||
Creates a new AMPS client More... | |||||
Client (String name, int version) | |||||
Creates a new client More... | |||||
Client (String name, Store store) | |||||
Creates a client with a persistent store. More... | |||||
Client (String name, Store store, int version) | |||||
Creates a client with a persistent store. More... | |||||
Client (String name, Transport transport) | |||||
Creates a client with a transport. More... | |||||
Client (String name, Transport transport, int version) | |||||
Creates a client with a transport. More... | |||||
Client (String name, Transport transport, Store store) | |||||
Creates a client with a transport and persistent store. More... | |||||
Client (String name, Transport transport, Store store, int version) | |||||
Creates a client with a transport and persistent store. More... | |||||
String | getName () | ||||
Return the name of the Client. More... | |||||
String | getNameHash () | ||||
Return the name hash of the Client as returned by the server after logon. More... | |||||
int | getServerVersion () | ||||
Return the server version retrieved during logon. If the client has not logged on or is connected to a server whose version is less than 3.8.0.0 this function will return 0. The version uses 2 digits each for major minor maintenance and hotfix i.e., 3.8.1.5 will return 3080105 Versions of AMPS prior to 3.8.0.0 did not return the server version to the client in the logon ack. More... | |||||
VersionInfo | getServerVersionInfo () | ||||
Return the server version retrieved during logon. If the client has not logged on or is connected to a server whose version is less than 3.8.0.0 this function will return the latest release version. The version is returned as a VersionInfo. Versions of AMPS prior to 3.8.0.0 did not return the server version to the client in the logon ack. More... | |||||
Uri | getURI () | ||||
Returns the URI the client is connected to. More... | |||||
Transport | getTransport () | ||||
Return the underlying transport. For advanced users, this method provides direct access to the transport. Care needs to be taken to not modify the underlying transport in ways that are incompatible with the Client. More... | |||||
void | setBookmarkStore (BookmarkStore val) | ||||
BookmarkStore | getBookmarkStore () | ||||
void | setPublishStore (Store store) | ||||
Store | getPublishStore () | ||||
virtual void | connect (string uri) | ||||
Connects to the AMPS instance through the provided URI. The URI is a String with the format: More... | |||||
void | setDisconnectHandler (ClientDisconnectHandler disconnectHandler) | ||||
Sets the ClientDisconnectHandler . In the event that the Client is unintentionally disconnected from AMPS, the More... | |||||
void | setDisconnectHandler (Action< Client > disconnectHandler) | ||||
Sets the lambda function called in the event of client disconnect More... | |||||
ClientDisconnectHandler | getDisconnectHandler () | ||||
Gets the currently configured ClientDisconnectHandler More... | |||||
void | setLastChanceMessageHandler (MessageHandler messageHandler) | ||||
Sets the MessageHandler instance used when no other handler matches. More... | |||||
void | setLastChanceMessageHandler (Action< Message > messageHandler) | ||||
Sets the MessageHandler instance used when no other handler matches. More... | |||||
void | setUnhandledMessageHandler (MessageHandler messageHandler) | ||||
Sets the MessageHandler instance used when no other handler matches. More... | |||||
void | setUnhandledMessageHandler (Action< Message > messageHandler) | ||||
Sets the lambda function used when no other handler matches. More... | |||||
void | setExceptionListener (ExceptionListener exceptionListener) | ||||
Sets the ExceptionListener instance used for communicating absorbed exceptions. More... | |||||
ExceptionListener | getExceptionListener () | ||||
Gets the currently configured ExceptionListener More... | |||||
void | setSubscriptionManager (SubscriptionManager subscriptionManager) | ||||
Sets the SubscriptionManager instance used for recording active subscriptions. More... | |||||
SubscriptionManager | getSubscriptionManager () | ||||
Gets the currently configured SubscriptionManager More... | |||||
void | setGlobalCommandTypeMessageHandler (string command_, MessageHandler messageHandler_) | ||||
Sets the MessageHandler that will be called in the event of a message of the given command type. More... | |||||
void | setGlobalCommandTypeMessageHandler (Message.Commands command_, MessageHandler messageHandler_) | ||||
Sets the MessageHandler that will be called in the event of a message of the given command type. More... | |||||
void | setGlobalCommandTypeMessageHandler (GlobalCommandTypeHandlers command_, MessageHandler messageHandler_) | ||||
Sets the MessageHandler that will be called in the event of a message of the given command type. More... | |||||
void | setDuplicateMessageHandler (MessageHandler messageHandler) | ||||
Sets the MessageHandler that will be called in the event of a duplicate message More... | |||||
MessageHandler | getDuplicateMessageHandler () | ||||
Returns the MessageHandler that will be called in the event of a duplicate message More... | |||||
void | setFailedWriteHandler (FailedWriteHandler handler_) | ||||
Sets the FailedWriteHandler instance that will be called in the event that messages fail to be written More... | |||||
void | setFailedWriteHandler (FailedWriteHandlerV4 handler_) | ||||
Sets the FailedWriteHandlerV4 instance that will be called in the event that messages fail to be written More... | |||||
FailedWriteHandler | getFailedWriteHandler () | ||||
Returns the the FailedWriteHandler instance that will be called in the event that messages fail to be written More... | |||||
virtual void | disconnect () | ||||
Disconnect from the AMPS server. More... | |||||
void | close () | ||||
Disconnect from the AMPS server. More... | |||||
Message | allocateMessage () | ||||
Creates a new Message appropriate for this client. This function should be called rarely, since it does allocate a handful of small objects. Users sensitive to garbage collection delays should cache the message object for later usage. More... | |||||
virtual void | setHeartbeat (int heartbeatInterval_, int readTimeout_) | ||||
Sets a heartbeat on this connection. When a heartbeat is set, the client periodically sends a heartbeat message to AMPS. This helps the client more quickly detect disconnection from AMPS. More... | |||||
void | setHeartbeat (int heartbeatInterval_) | ||||
Sets a heartbeat on this connection. When a heartbeat is set, the client periodically sends a heartbeat message to AMPS. This helps the client more quickly detect disconnection from AMPS. More... | |||||
void | send (Message m) | ||||
Send a Message to AMPS via the Transport used in the Client. More... | |||||
void | addMessageHandler (CommandId commandId_, MessageHandler messageHandler_, Message.AckTypes requestedAcks_, bool isSubscribe_) | ||||
Adds a MessageHandler for a given CommandId to self. More... | |||||
bool | removeMessageHandler (CommandId commandId_) | ||||
void | setRetryOnDisconnect (bool isRetryOnDisconnect) | ||||
Set whether or not messages being sent to the server should retry if the client is disconnected. This is most useful if you are publishing data that has a very short lifetime and so is no longer relevant after the time it takes to reconnect. More... | |||||
bool | getRetryOnDisconnect () | ||||
Return whether or not messages being sent to the server will retry if the client is disconnected. More... | |||||
void | setDefaultMaxDepth (int defaultMaxDepth) | ||||
Set the default max depth to be used on all MessageStream results. More... | |||||
int | getDefaultMaxDepth () | ||||
Return the current default max depth value set on MessageStream results. More... | |||||
CommandId | send (MessageHandler messageHandler, Message message, long timeout) | ||||
Send a Message to AMPS and register the messageHandler for any messages resulting from command execution. More... | |||||
CommandId | send (Action< Message > messageHandler, Message message, long timeout) | ||||
Send a Message to AMPS and register the messageHandler for any messages resulting from command execution. More... | |||||
ulong | publish (byte[] topic, int topicOffset, int topicLength, byte[] data, int dataOffset, int dataLength, int expiration) | ||||
Publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | publish (byte[] topic, int topicOffset, int topicLength, byte[] data, int dataOffset, int dataLength) | ||||
Publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | publish (String topic, String data) | ||||
Publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | publish (String topic, String data, int expiration) | ||||
Publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | deltaPublish (byte[] topic, int topicOffset, int topicLength, byte[] data, int dataOffset, int dataLength) | ||||
Delta publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | deltaPublish (byte[] topic, int topicOffset, int topicLength, byte[] data, int dataOffset, int dataLength, int expiration) | ||||
Delta publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | deltaPublish (String topic, String data) | ||||
Delta publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
ulong | deltaPublish (String topic, String data, int expiration) | ||||
Delta publish a message to an AMPS topic. If the client has a publish store set, More... | |||||
virtual CommandId | logon (long timeout) | ||||
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set. More... | |||||
virtual CommandId | logon (string options) | ||||
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set. More... | |||||
virtual CommandId | logon (long timeout, Authenticator authenticator) | ||||
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set. More... | |||||
virtual CommandId | logon (long timeout, string options) | ||||
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set. More... | |||||
virtual CommandId | logon (long timeout, Authenticator authenticator, string options) | ||||
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set. More... | |||||
virtual CommandId | logon () | ||||
Logs into AMPS with the parameters provided in the connect method. More... | |||||
CommandId | bookmarkSubscribe (MessageHandler messageHandler, String topic, String filter=null, CommandId subId=null, String bookmark=null, string options=null, long timeout=0) | ||||
Places a bookmark subscription with AMPS. Starts replay at the most recent message reported by the BookmarkStore. More... | |||||
CommandId | subscribe (MessageHandler messageHandler, String topic, String filter, long timeout) | ||||
Places a subscription with AMPS. More... | |||||
CommandId | subscribe (Action< Message > messageHandler, String topic, String filter, long timeout) | ||||
Places a subscription with AMPS. More... | |||||
MessageStream | subscribe (string topic, string filter=null, string options=null, long timeout=0, string subid=null) | ||||
Places a subscription with AMPS. More... | |||||
CommandId | subscribe (MessageHandler messageHandler, String topic, String filter=null, string options=null, long timeout=0, String subId=null) | ||||
Places a subscription with AMPS. More... | |||||
CommandId | subscribe (Action< Message > messageHandler, String topic, String filter=null, String options=null, long timeout=0, string subid=null) | ||||
Places a subscription with AMPS. More... | |||||
CommandId | subscribe (MessageHandler messageHandler, String topic, long timeout) | ||||
Places a subscription with AMPS. More... | |||||
CommandId | subscribe (Action< Message > messageHandler, String topic, long timeout) | ||||
Places a subscription with AMPS. More... | |||||
CommandId | deltaSubscribe (MessageHandler messageHandler, String topic, String filter=null, String options=null, long timeout=0, String subId=null) | ||||
Places a delta subscription with AMPS. More... | |||||
CommandId | deltaSubscribe (Action< Message > messageHandler, String topic, String filter=null, String options=null, long timeout=0, String subId=null) | ||||
Places a delta subscription with AMPS. More... | |||||
void | unsubscribe (CommandId subscriptionId) | ||||
Remove a subscription from AMPS. More... | |||||
void | unsubscribe () | ||||
Remove all of the client's subscriptions from AMPS. More... | |||||
MessageStream | sow (String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (MessageHandler messageHandler, String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (Action< Message > messageHandler, String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (MessageHandler messageHandler, String topic, String filter, int batchSize, long timeout) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (MessageHandler messageHandler, String topic, int batchSize, long timeout) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (Action< Message > messageHandler, String topic, int batchSize, long timeout) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (MessageHandler messageHandler, String topic, long timeout) | ||||
Executes a SOW query. More... | |||||
CommandId | sow (Action< Message > messageHandler, String topic, long timeout) | ||||
Executes a SOW query. More... | |||||
MessageStream | sowAndSubscribe (String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (MessageHandler messageHandler, String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (Action< Message > messageHandler, String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (MessageHandler messageHandler, String topic, String filter, int batchSize, bool oofEnabled, long timeout) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (Action< Message > a, String topic, String filter, int batchSize, bool sendOOF, long timeout) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (MessageHandler messageHandler, String topic, int batchSize, long timeout) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (Action< Message > a, String topic, int batchSize, long timeout) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (MessageHandler messageHandler, String topic, long timeout) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndSubscribe (Action< Message > a, String topic, long timeout) | ||||
Executes a SOW query and places a subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (MessageHandler messageHandler, String topic, String filter=null, String orderBy=null, String bookmark=null, String options=null, int batchSize=10, int topN=-1, long timeout=0) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (MessageHandler messageHandler, String topic, String filter, int batchSize, bool oofEnabled, bool sendEmpties, long timeout) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (Action< Message > messageHandler, String topic, String filter, int batchSize, bool oofEnabled, bool sendEmpties, long timeout) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (MessageHandler messageHandler, String topic, int batchSize, long timeout) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (Action< Message > messageHandler, String topic, int batchSize, long timeout) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (MessageHandler messageHandler, String topic, long timeout) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
CommandId | sowAndDeltaSubscribe (Action< Message > messageHandler, String topic, long timeout) | ||||
Executes a SOW query and places a delta subscription. More... | |||||
Message | sowDelete (String topic, String filter, long timeout=0) | ||||
Executes a SOW delete with filter. More... | |||||
CommandId | sowDelete (MessageHandler messageHandler, String topic, String filter, long timeout=0) | ||||
Executes a SOW delete with filter. More... | |||||
CommandId | sowDelete (Action< Message > messageHandler, String topic, String filter, long timeout=0) | ||||
Executes a SOW delete with filter. More... | |||||
void | startTimer () | ||||
CommandId | stopTimer (MessageHandler messageHandler, long timeout) | ||||
void | setLogonCorrelationData (String correlationData) | ||||
Gets the uninterpreted logon correlation information currently set. More... | |||||
String | getLogonCorrelationData () | ||||
Gets the uninterpreted logon correlation information currently set. More... | |||||
CommandId | sowDeleteByKeys (MessageHandler messageHandler, String topic, String keys, long timeout=0) | ||||
Executes a SOW delete by sow key. More... | |||||
CommandId | sowDeleteByKeys (Action< Message > messageHandler, String topic, String keys, long timeout=0) | ||||
Executes a SOW delete by sow key. More... | |||||
CommandId | sowDeleteByData (MessageHandler messageHandler, String topic, String data, long timeout=0) | ||||
Executes a SOW delete by data. AMPS uses key fields in the data to find and delete a message with the same keys. More... | |||||
CommandId | sowDeleteByData (Action< Message > messageHandler, String topic, String data, long timeout=0) | ||||
Executes a SOW delete by data. AMPS uses key fields in the data to find and delete a message with the same keys. More... | |||||
void | publishFlush () | ||||
Ensures that AMPS messages are sent and have been processed by the AMPS server. The client issues a flush command and waits for an acknowledgement. This mehthod blocks until messages have been processed and is most useful when the application reaches a point at which it is acceptable to block to ensure that messages are delivered to the AMPS server. For example, an application might call publishFlush before exiting. One thing to note is that if AMPS is unavailable (HA Client), publishFlush needs to wait for a connection to come back up which may look like it's hanging. | |||||
void | publishFlush (int timeout) | ||||
Ensures that AMPS messages are sent and have been processed by the AMPS server. The client issues a flush command and waits for an acknowledgement or until the timeout expires. This mehthod blocks until messages have been processed and is most useful when the application reaches a point at which it is acceptable to block to ensure that messages are delivered to the AMPS server. For example, an application might call publishFlush before exiting. One thing to note is that if AMPS is unavailable (HA Client), publishFlush needs to wait for a connection to come back up which may look like it's hanging.
| |||||
void | publishFlush (string ackType_) | ||||
Ensures that AMPS messages are sent and have been processed by the AMPS server. The client issues a flush command and waits for an acknowledgement. This mehthod blocks until messages have been processed and is most useful when the application reaches a point at which it is acceptable to block to ensure that messages are delivered to the AMPS server. For example, an application might call publishFlush before exiting. One thing to note is that if AMPS is unavailable (HA Client), publishFlush needs to wait for a connection to come back up which may look like it's hanging.
| |||||
void | publishFlush (string ackType_, int timeout) | ||||
Ensures that AMPS messages are sent and have been processed by the AMPS server. The client issues a flush command and waits for an acknowledgement or until the timeout expires. This mehthod blocks until messages have been processed and is most useful when the application reaches a point at which it is acceptable to block to ensure that messages are delivered to the AMPS server. For example, an application might call publishFlush before exiting. One thing to note is that if AMPS is unavailable (HA Client), publishFlush needs to wait for a connection to come back up which may look like it's hanging.
| |||||
long | flush () | ||||
long | flush (long timeout) | ||||
Clear the queued messages which may be waiting in the transport More... | |||||
void | setThreadCreatedHandler (ThreadCreatedHandler handler_) | ||||
Set a handler that is invoked immediately by any thread created by the transport. More... | |||||
void | setThreadCreatedHandler (Action handler_) | ||||
Set a handler that is invoked immediately by any thread created by the transport. More... | |||||
void | setTransportFilter (TransportFilter filter_) | ||||
Sets a TransportFilter that filters raw bytes bfeore send and after receive. More... | |||||
virtual ConnectionInfo | getConnectionInfo () | ||||
Assembles a new ConnectionInfo with the state of this client and associated classes. More... | |||||
void | ack (byte[] topic, int topicPos, int topicLen, byte[] bookmark, int bookmarkPos, int bookmarkLen, byte[] options=null, int optionsPos=0, int optionsLen=0) | ||||
ACKs a message queue message. More... | |||||
void | ack (Field topic, Field bookmark, Field options=null) | ||||
ACKs a message queue message. More... | |||||
void | ack (String topic, String bookmark, String options=null) | ||||
ACKS a message queue message. More... | |||||
void | setAutoAck (bool isAutoAckEnabled) | ||||
Enables or disables auto-acking. When auto-acking is enabled any successful return from a message handler functiokn will result in an ACK (sow_delete) message sent to the server. Any thrown exception will result in a "cancel" ACK sent to the server. More... | |||||
bool | getAutoAck () | ||||
Returns the current setting of auto-acking. More... | |||||
void | setAckBatchSize (int batchSize) | ||||
Sets the current ACK batch size.The ACK batch size controls how many successful ACKs (which are sow_delete messages) are batched together before sending to the server.When combined with the "max_backlog" and MaxPerSubscriptionBacklog server configuration parameter, greater network efficiency can be achieved when using message queues.Setting this parameter causes calls to "ack" and successful auto-acks to be batched; unsuccessful/cancel acks are sent immediately. More... | |||||
int | getAckBatchSize () | ||||
Returns the current ACK batch size. See the documentation for setAckBatchSize(int). More... | |||||
void | setAckTimeout (long ackTimeout) | ||||
Sets the ack timeout – the maximum time to let a success ack be cached before sending. More... | |||||
long | getAckTimeout () | ||||
Returns the queue ack timeout. More... | |||||
void | flushAcks () | ||||
Sends any pending queue ACKs to the server. More... | |||||
CommandId | executeAsync (Command command, MessageHandler handler=null) | ||||
Execute the provided command and process responses on the client receive thread using the provided handler. More... | |||||
CommandId | executeAsync (Command command, Action< Message > action) | ||||
Execute the provided command on a background thread and provide messages received in response to the handler provided. More... | |||||
MessageStream | execute (Command command) | ||||
Execute the provided command and return messages received in response in a MessageStream. More... | |||||
void | Dispose () | ||||
Static Public Member Functions | |
static int | getVersionAsInt (String version) |
Return the numeric value for the given version string with the pattern: Major.Minor.Maintenance.Hotfix The version uses 2 digits each for major minor maintenance and hotfix i.e., 3.8.1.5 will return 3080105 Version strings passed in can be shortened to not include all levels so 3.8 will return 3080000. More... | |
static String | getVersion () |
Return the build number for the client that is stored in the Manifest.mf of the jar file. More... | |
Static Public Attributes | |
const int | MIN_MULTI_BOOKMARK_VERSION = 4000000 |
const int | MIN_QUEUE_VERSION = 5000000 |
Protected Member Functions | |
void | broadcastConnectionStateChangedEvent (ConnectionStateChangedEventArgs args) |
Protected Attributes | |
ExceptionListener | _exceptionListener = null |
Object | internalLock = new Object() |
volatile int | _lastFailedConnectionVersion = -1 |
Properties | |
bool | AutoAck [get, set] |
The AutoAck property enables or disables auto-acking. When auto-acking is enabled any successful return from a message handler function will result in an ACK (sow_delete) message sent to the server. Any thrown exception will result in a "cancel" ACK sent to the server. More... | |
int | AckBatchSize [get, set] |
The ACK batch size controls how many successful ACKs (which are sow_delete messages) are batched together before sending to the server.When combined with the "max_backlog" and MaxPerSubscriptionBacklog server configuration parameter, greater network efficiency can be achieved when using message queues.Setting this parameter causes calls to "ack" and successful auto-acks to be batched; unsuccessful/cancel acks are sent immediately. More... | |
Events | |
EventHandler< ConnectionStateChangedEventArgs > | ConnectionStateChanged |
|
strong |
Used to specify what type of command should be directed to a global handler when it is set. All messages of this type will be sent to the handler in addition to any handlers set for the specific command, subscription, or query id in the message.
|
inline |
Creates a new AMPS client
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
|
inline |
Creates a new client
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
version | The AMPS server version to connect to |
|
inline |
Creates a client with a persistent store.
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
store | Store to use for the client |
|
inline |
Creates a client with a persistent store.
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
store | Store to use for the client |
version | Server version connecting to |
|
inline |
Creates a client with a transport.
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
transport | Transport to use with the client |
|
inline |
Creates a client with a transport.
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
transport | Transport to use with the client |
version | Server version connecting to |
Creates a client with a transport and persistent store.
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
transport | Transport to use with the client |
store | Store to use for the client |
Creates a client with a transport and persistent store.
name | A name to identify this client. This name is used for duplicate message detection and should be unique. AMPS does not enforce specific restrictions on the character set used, however some protocols (for example, XML) may not allow specific characters. 60East recommends that the client name be meaningful, short, human readable, and avoid using control characters, newline characters, or square brackets. |
transport | Transport to use with the client |
store | Store to use for the client |
version | Server version connecting to |
|
inline |
ACKs a message queue message.
topic | The message topic |
topicPos | The starting index of the topic name |
topicLen | The length of the topic name |
bookmark | The message bookmark |
bookmarkPos | The starting index of the message bookmark |
bookmarkLen | The length of the messasge bookmark |
options | An options string for the ack, such as 'cancel' |
optionsPos | The starting index of the options |
optionsLen | The length of the options |
ACKs a message queue message.
topic | The topic of the message |
bookmark | The bookmark of the message |
options | The options for the ack, such as 'cancel' |
|
inline |
ACKS a message queue message.
topic | The topic of the message. |
bookmark | The bookmark of the message. |
|
inline |
Adds a MessageHandler for a given CommandId to self.
commandId_ | The command, query, or subid used for this route. |
messageHandler_ | The message handler to route to |
requestedAcks_ | The acks requested to be sent to the handler |
isSubscribe_ | True if this route is for an ongoing subscription |
|
inline |
Creates a new Message appropriate for this client. This function should be called rarely, since it does allocate a handful of small objects. Users sensitive to garbage collection delays should cache the message object for later usage.
|
inline |
Places a bookmark subscription with AMPS. Starts replay at the most recent message reported by the BookmarkStore.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | Only messages with data that match this filter will be received |
subId | You may optionally provide a subscription ID to ease recovery scenarios, instead of having the system automatically generate one for you. When used with the 'replace' option, this is the subscription to be replaced. With a bookmark store, this is the subscription ID used for recovery. So, when using a persistent bookmark store, provide an explicit subscription ID that is consistent across application restarts. |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. |
options | A Message.Options> value indicating desired options for this subscription. Use Message.Options.None if no options are desired. |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
SubscriptionAlreadyExistsException | A subscription with this subId is already registered |
BadFilterException | The provided filter is invalid |
BadRegexTopicException | The topic specified was an invalid regular expression |
TimedOutException | The operation took longer than the timeout to execute |
DisconnectedException | The client wasn't connected when the operation was executed |
|
inline |
Disconnect from the AMPS server.
|
inlinevirtual |
Connects to the AMPS instance through the provided URI. The URI is a String with the format:
transport://user:password@host:port/protocol
The elements in the URI string are as follows:
uri | The URI string to connect to |
ConnectionRefusedException | The connection could not be established |
AlreadyConnectedException | The connection is already connected |
InvalidURIException | The specified URI is invalid |
ProtocolException | The protocol is invalid |
TransportTypeException | The transport type is invalid |
Reimplemented in AMPS.Client.HAClient.
|
inline |
Delta publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | array containing the topic to publish the data to |
topicOffset | offset into topic array where the topic name begins |
topicLength | length of topic in topic array |
data | array containing the data to publish |
dataOffset | offset into the data array where the data begins |
dataLength | length of the data in data array |
|
inline |
Delta publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | array containing the topic to publish the data to |
topicOffset | offset into topic array where the topic name begins |
topicLength | length of topic in topic array |
data | array containing the data to publish |
dataOffset | offset into the data array where the data begins |
expiration | The number of seconds until the message expires. |
dataLength | length of the data in data array |
|
inline |
Delta publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | Topic to publish the data to |
data | Data to publish to the topic |
DisconnectedException | The client was disconnected at time of publish |
|
inline |
Delta publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | Topic to publish the data to |
data | Data to publish to the topic |
expiration | The number of seconds until the message expires. |
DisconnectedException | The client was disconnected at time of publish |
|
inline |
Places a delta subscription with AMPS.
messageHandler | The lambda function to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Places a delta subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inlinevirtual |
Disconnect from the AMPS server.
Reimplemented in AMPS.Client.HAClient.
|
inline |
Execute the provided command and return messages received in response in a MessageStream.
This method creates a message based on the provided Command, sends the message to AMPS, and receives the results. AMPS sends the message and receives the results on a background thread. That thread populates the MessageStream returned by this method.
Execute the provided command on a background thread and provide messages received in response to the handler provided.
This method creates a message based on the provided Command, sends the message to AMPS, and invokes the provided Action to process messages returned in response to the command. AMPS sends the message and receives the results on a background thread. The MessageHandler runs on the background thread.
command | The Command object containing the command to send to AMPS |
action | The Action to invoke to process messages received |
|
inline |
Execute the provided command and process responses on the client receive thread using the provided handler.
This method creates a message based on the provided Command, sends the message to AMPS, and invokes the provided MessageHandler to process messages returned in response to the command. Rather than providing messages on the calling thread, the Client runs the message handler directly on the client receive thread.
When the provided MessageHandler is not null, this method blocks until AMPS acknowledges that the command has been processed. The results of the command after that acknowledgement are provided to the MessageHandler.
command | The Command object containing the command to send to AMPS |
handler | The MessageHandler to invoke to process messages received |
|
inline |
Clear the queued messages which may be waiting in the transport
|
inline |
Clear the queued messages which may be waiting in the transport
timeout | Number of milliseconds to wait for flush, where 0 indicates no timeout |
|
inline |
Sends any pending queue ACKs to the server.
|
inline |
Returns the current ACK batch size. See the documentation for setAckBatchSize(int).
|
inline |
Returns the queue ack timeout.
|
inline |
Returns the current setting of auto-acking.
|
inlinevirtual |
Assembles a new ConnectionInfo with the state of this client and associated classes.
Reimplemented in AMPS.Client.HAClient.
|
inline |
Return the current default max depth value set on MessageStream results.
|
inline |
Gets the currently configured ClientDisconnectHandler
|
inline |
Returns the MessageHandler that will be called in the event of a duplicate message
|
inline |
Gets the currently configured ExceptionListener
|
inline |
Returns the the FailedWriteHandler instance that will be called in the event that messages fail to be written
|
inline |
Gets the uninterpreted logon correlation information currently set.
|
inline |
|
inline |
|
inline |
Return whether or not messages being sent to the server will retry if the client is disconnected.
|
inline |
Return the server version retrieved during logon. If the client has not logged on or is connected to a server whose version is less than 3.8.0.0 this function will return 0. The version uses 2 digits each for major minor maintenance and hotfix i.e., 3.8.1.5 will return 3080105 Versions of AMPS prior to 3.8.0.0 did not return the server version to the client in the logon ack.
|
inline |
Return the server version retrieved during logon. If the client has not logged on or is connected to a server whose version is less than 3.8.0.0 this function will return the latest release version. The version is returned as a VersionInfo. Versions of AMPS prior to 3.8.0.0 did not return the server version to the client in the logon ack.
|
inline |
Gets the currently configured SubscriptionManager
|
inline |
|
inline |
Returns the URI the client is connected to.
|
inlinestatic |
Return the build number for the client that is stored in the Manifest.mf of the jar file.
|
inlinestatic |
Return the numeric value for the given version string with the pattern: Major.Minor.Maintenance.Hotfix The version uses 2 digits each for major minor maintenance and hotfix i.e., 3.8.1.5 will return 3080105 Version strings passed in can be shortened to not include all levels so 3.8 will return 3080000.
version | The version string to convert. |
CommandException | The string doesn't represent a valid version. |
|
inlinevirtual |
Logs into AMPS with the parameters provided in the connect method.
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
Reimplemented in AMPS.Client.HAClient.
|
inlinevirtual |
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set.
timeout | The number of milliseconds to wait for the command to execute, where 0 indicates no timeout |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
Reimplemented in AMPS.Client.HAClient.
|
inlinevirtual |
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set.
timeout | The number of milliseconds to wait for the command to execute, where 0 indicates no timeout |
authenticator | The authenticator to use for logging in. |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
Reimplemented in AMPS.Client.HAClient.
|
inlinevirtual |
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set.
timeout | The number of milliseconds to wait for the command to execute, where 0 indicates no timeout |
authenticator | The authenticator to use for logging in. |
options | The options string to pass on to the server during logon. |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
Reimplemented in AMPS.Client.HAClient.
|
inlinevirtual |
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set.
timeout | The number of milliseconds to wait for the command to execute, where 0 indicates no timeout |
options | The options string to pass on to the server during logon. |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
Reimplemented in AMPS.Client.HAClient.
|
inlinevirtual |
Logs into AMPS with the parameters provided in the connect method and the logon correlation data if set.
options | The options string to pass on to the server during logon. |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
Reimplemented in AMPS.Client.HAClient.
|
inline |
Publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | array containing the topic to publish the data to |
topicOffset | offset into topic array where the topic name begins |
topicLength | length of topic in topic array |
data | array containing the data to publish |
dataOffset | offset into the data array where the data begins |
dataLength | length of the data in data array |
DisconnectedException | The client is not connected; the program needs to call connect() |
StoreException | An error occurred writing to the local HA store |
|
inline |
Publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | array containing the topic to publish the data to |
topicOffset | offset into topic array where the topic name begins |
topicLength | length of topic in topic array |
data | array containing the data to publish |
dataOffset | offset into the data array where the data begins |
dataLength | length of the data in data array |
expiration | the number of seconds until the message expires. |
DisconnectedException | The client is not connected; the program needs to call connect() |
StoreException | An error occurred writing to the local HA store |
|
inline |
Publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | Topic to publish the data to |
data | Data to publish to the topic |
DisconnectedException | The client is disconnected; the program needs to call connect() |
|
inline |
Publish a message to an AMPS topic. If the client has a publish store set,
then the client will store the message before forwarding the message to AMPS. This method does not wait for a response from the AMPS server. To detect failure, install a failed write handler. If a DisconnectException occurs, the message is still stored in the publish store.
topic | Topic to publish the data to |
data | Data to publish to the topic |
expiration | The number of seconds until the message expires. |
DisconnectedException | The client is not connected; the program needs to call connect() |
|
inline |
Remove a route from self.
commandId_ | The route to remove |
|
inline |
Send a Message to AMPS and register the messageHandler for any messages resulting from command execution.
messageHandler | The message handler that'll receive messages for this command |
message | The message to send |
timeout | The number of milliseconds to wait for command acknowledgment, where 0 indicates no timeout |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
|
inline |
Send a Message to AMPS and register the messageHandler for any messages resulting from command execution.
messageHandler | The message handler that'll receive messages for this command |
message | The message to send |
timeout | The number of milliseconds to wait for command acknowledgment, where 0 indicates no timeout |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Sets the current ACK batch size.The ACK batch size controls how many successful ACKs (which are sow_delete messages) are batched together before sending to the server.When combined with the "max_backlog" and MaxPerSubscriptionBacklog server configuration parameter, greater network efficiency can be achieved when using message queues.Setting this parameter causes calls to "ack" and successful auto-acks to be batched; unsuccessful/cancel acks are sent immediately.
batchSize | The batch size to use (default:1) |
|
inline |
Sets the ack timeout – the maximum time to let a success ack be cached before sending.
ackTimeout | the ack timeout, in milliseconds |
|
inline |
Enables or disables auto-acking. When auto-acking is enabled any successful return from a message handler functiokn will result in an ACK (sow_delete) message sent to the server. Any thrown exception will result in a "cancel" ACK sent to the server.
isAutoAckEnabled | true to enable, false to disable |
|
inline |
Set the default max depth to be used on all MessageStream results.
defaultMaxDepth | The new default value for max depth. |
|
inline |
Sets the lambda function called in the event of client disconnect
disconnectHandler |
|
inline |
Sets the ClientDisconnectHandler . In the event that the Client is unintentionally disconnected from AMPS, the
invoke
method from the ClientDisconnectHandler will be invoked.
disconnectHandler | The disconnect handler |
|
inline |
Sets the MessageHandler that will be called in the event of a duplicate message
messageHandler | MessageHandler to invoke in the event of duplicate messages |
|
inline |
Sets the ExceptionListener instance used for communicating absorbed exceptions.
exceptionListener | The exception listener instance to invoke for exceptions. |
|
inline |
Sets the FailedWriteHandler instance that will be called in the event that messages fail to be written
handler_ | FailedWriteHandler to invoke for failed writes. |
|
inline |
Sets the FailedWriteHandlerV4 instance that will be called in the event that messages fail to be written
handler_ | FailedWriteHandlerV4 to invoke for failed writes. |
|
inline |
Sets the MessageHandler that will be called in the event of a message of the given command type.
command_ | GlobalCommandTypeHandlers type of command to send to messageHandler_ |
messageHandler | MessageHandler to invoke |
|
inline |
Sets the MessageHandler that will be called in the event of a message of the given command type.
command_ | Message.Commands type of command to send to messageHandler_ |
messageHandler | MessageHandler to invoke |
|
inline |
Sets the MessageHandler that will be called in the event of a message of the given command type.
command_ | The type of command to send to messageHandler_ |
messageHandler | MessageHandler to invoke |
|
inline |
|
inlinevirtual |
Sets a heartbeat on this connection. When a heartbeat is set, the client periodically sends a heartbeat message to AMPS. This helps the client more quickly detect disconnection from AMPS.
heartbeatInterval_ | the interval (in seconds) at which to send a heartbeat message |
readTimeout_ | the length of time (in seconds) to wait for a response to a heartbeat message |
|
inline |
Sets the MessageHandler instance used when no other handler matches.
messageHandler | The message handler to invoke when no other handler matches. |
|
inline |
Sets the MessageHandler instance used when no other handler matches.
messageHandler | The message handler to invoke when no other handler matches. |
|
inline |
Gets the uninterpreted logon correlation information currently set.
correlationData | The base64 data to be used for logon correlation. |
|
inline |
Set whether or not messages being sent to the server should retry if the client is disconnected. This is most useful if you are publishing data that has a very short lifetime and so is no longer relevant after the time it takes to reconnect.
isRetryOnDisconnect | False to disable default behavior of autmatic retry. |
|
inline |
Sets the SubscriptionManager instance used for recording active subscriptions.
subscriptionManager | The subscription manager invoked when there is a change to the subscriptions |
|
inline |
Set a handler that is invoked immediately by any thread created by the transport.
Action to be invoked by any new transport threads.
|
inline |
Set a handler that is invoked immediately by any thread created by the transport.
ThreadCreatedHandler to be invoked by any new transport threads.
|
inline |
Sets a TransportFilter that filters raw bytes bfeore send and after receive.
filter_ | A TransportFilter such as AMPS.Client.TransportTraceFilter. |
|
inline |
Sets the lambda function used when no other handler matches.
messageHandler | The function to invoke when no other handler matches. |
|
inline |
Sets the MessageHandler instance used when no other handler matches.
messageHandler | The message handler to invoke when no other handler matches. |
|
inline |
Executes a SOW query.
messageHandler | The function to invoke with matching messages |
topic | The topic to subscribe to |
batchSize | The batching parameter to use for the results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
batchSize | The batching parameter to use for the results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
batchSize | The batching parameter to use for the results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query.
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
batchSize | The batching parameter to use for the SOW query results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
batchSize | The batching parameter to use for the SOW query results |
oofEnabled | Specifies whether or not Out-of-Focus processing is enabled |
sendEmpties | Specifies whether or not unchanged records are received on the delta subscription |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
batchSize | The batching parameter to use for the SOW query results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
batchSize | The batching parameter to use for the SOW query results |
oofEnabled | Specifies whether or not Out-of-Focus processing is enabled |
sendEmpties | Specifies whether or not unchanged records are received on the delta subscription |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a delta subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
a | The function to invoke with matching messages |
topic | The topic to subscribe to |
batchSize | The batching parameter to use for the SOW query results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
a | The function to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
a | The function to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
batchSize | The batching parameter to use for the SOW query results |
sendOOF | True if out-of-focus ("OOF") messages are desired. |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
batchSize | The batching parameter to use for the SOW query results |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
batchSize | The batching parameter to use for the SOW query results |
oofEnabled | True if out-of-focus ("OOF") messages are desired. |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW query and places a subscription.
topic | The topic to subscribe to |
filter | The filter |
orderBy | The ordering property |
bookmark | A bookmark identifer, one of the constants from Client.Bookmarks, or a timestamp of the form YYYYmmddTHHMMSS, as described in the AMPS User's Guide. This the point at which AMPS executes the historical query. |
options | A Message.Options> value indicating desired options for this query. Use Message.Options.None if no options are desired. |
batchSize | The batching parameter to use for the results |
topN | The maximum number of records the server will return (default is all that match) |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Executes a SOW delete with filter.
messageHandler | The message handler to invoke with stats and completed acknowledgements |
topic | The topic to subscribe to |
filter | The filter. To delete all records, set a filter that is always true ('1=1') |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
|
inline |
Executes a SOW delete with filter.
messageHandler | The message handler to invoke with stats and completed acknowledgements |
topic | The topic to subscribe to |
filter | The filter. To delete all records, set a filter that is always true ('1=1') |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
|
inline |
Executes a SOW delete with filter.
topic | The topic to subscribe to |
filter | The filter. To delete all records, set a filter that is always true ('1=1') |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
BadFilterException | The specified filter was invalid. |
|
inline |
Executes a SOW delete by data. AMPS uses key fields in the data to find and delete a message with the same keys.
messageHandler | The message handler to invoke with stats and completed acknowledgements |
topic | The topic to delete from |
data | The message to match and delete in the SOW cache. |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
|
inline |
Executes a SOW delete by data. AMPS uses key fields in the data to find and delete a message with the same keys.
messageHandler | The message handler to invoke with stats and completed acknowledgements |
topic | The topic to delete from |
data | The message to match and delete in the SOW cache. |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
|
inline |
Executes a SOW delete by sow key.
messageHandler | The message handler to invoke with stats and completed acknowledgements |
topic | The topic to delete from |
keys | The keys to delete |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
|
inline |
Executes a SOW delete by sow key.
messageHandler | The message handler to invoke with stats and completed acknowledgements |
topic | The topic to delete from |
keys | The keys to delete |
timeout | The maximum time to wait for the SOW delete to be started to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
NotEntitledException | An entitlement error occured on this topic. |
InvalidTopicException | The specified topic was invalid. |
|
inline |
Places a subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Places a subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Places a subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
options | A value from Message.Options indicating additional processing options. |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
|
inline |
Places a subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Places a subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Places a subscription with AMPS.
messageHandler | The message handler to invoke with matching messages |
topic | The topic to subscribe to |
filter | The filter |
options | A value from Message.Options indicating additional processing options. |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
subId | The subscription id to use for the subscription. |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Places a subscription with AMPS.
topic | The topic to subscribe to |
filter | The filter |
options | A value from Message.Options indicating additional processing options. |
timeout | The maximum time to wait for the subscription to be placed (milliseconds), where 0 indicates no timeout |
subId | The subscription id to use for the subscription. |
TimedOutException | The command execution exceeded the timeout value |
DisconnectedException | The connection was disconnected at time of send |
AuthenticationException | An authentication exception occured while logging on. |
NotEntitledException | An entitlement error occured on this topic. |
BadFilterException | The specified filter was invalid. |
BadRegexTopicException | The specified regex topic was invalid. |
SubscriptionAlreadyExistsException | The specified subscription ID already exists. |
|
inline |
Remove all of the client's subscriptions from AMPS.
DisconnectedException | The client was disconnected at the time of execution |
|
inline |
Remove a subscription from AMPS.
subscriptionId | The subscription identifier to remove |
DisconnectedException | The client was disconnected at the time of execution |
|
getset |
The ACK batch size controls how many successful ACKs (which are sow_delete messages) are batched together before sending to the server.When combined with the "max_backlog" and MaxPerSubscriptionBacklog server configuration parameter, greater network efficiency can be achieved when using message queues.Setting this parameter causes calls to "ack" and successful auto-acks to be batched; unsuccessful/cancel acks are sent immediately.
|
getset |
The AutoAck property enables or disables auto-acking. When auto-acking is enabled any successful return from a message handler function will result in an ACK (sow_delete) message sent to the server. Any thrown exception will result in a "cancel" ACK sent to the server.
EventHandler<ConnectionStateChangedEventArgs> AMPS.Client.Client.ConnectionStateChanged |
Represents the method to be called when the connection state for this client changes. Notice that this event is raised as soon as the client detects the change of state. This means that, when the event is raised because the client is connected, the client has not yet logged on or completed any recovery (such as replaying the publish store, re-entering subscriptions,and so on). The event handler should not issue commands on the client while recovery is in progress.