This class acts as a base class for QATransactionalManager and QAManager, which manage transactional and non-transactional messaging, respectively.
public class QAManagerBase
All members of QAManagerBase class, including all inherited members.
Name | Description |
---|---|
Begins an enumeration of message store property names. | |
Frees the resources associated with a browse operation. | |
Begins a browse of messages queued in the message store. | |
Begins a browse of the message that is queued in the message store, with the given message ID. | |
Begins a browse of messages queued in the message store for the given queue. | |
Begins a browse of messages queued in the message store that satisfy the given selector. | |
Returns the next message for the given browse operation, returning null if there are no more messages. | |
Cancels the message with the given message ID. | |
Closes the connection to the QAnywhere message system and releases any resources used by the QAManagerBase. | |
Creates a QABinaryMessage instance. | |
Creates a QATextMessage instance. | |
Deletes a QAMessage object. | |
Frees the resources associated with a message store property name enumeration. | |
Returns the total depth of all queues, based on a given filter. | |
Gets a boolean value for a predefined or custom message store property. | |
Gets a byte value for a predefined or custom message store property. | |
Gets a double value for a predefined or custom message store property. | |
Gets a float value for a predefined or custom message store property. | |
Gets an int value for a predefined or custom message store property. | |
The error code associated with the last executed QAManagerBase method. | |
The error text associated with the last executed QAManagerBase method. | |
The native error code associated with the last executed QAManagerBase method. | |
Gets a long value for a predefined or custom message store property. | |
Returns the next available QAMessage sent to the specified address. | |
Returns the next available QAMessage sent to the specified address that satisfies the given selector. | |
Returns the next available QAMessage sent to the given address that satisfies the given selector. | |
Returns the next available QAMessage sent to the given address that satisfies the given selector. | |
Returns the next available QAMessage sent to the given address. | |
Returns the next available QAMessage sent to the given address. | |
Returns the QAManager acknowledgement mode for received messages. | |
Returns the depth of a queue, based on a given filter. | |
Gets a short value for a predefined or custom message store property. | |
Gets a string value for a predefined or custom message store property. | |
Returns the message store property name for the given enumeration. | |
Puts a message into the queue for the given destination. | |
Puts a message into the queue for the given destination and a given time-to-live in milliseconds. | |
Sets a predefined or custom message store property to a boolean value. | |
Sets a predefined or custom message store property to a byte value. | |
Sets a predefined or custom message store property to a double value. | |
Sets a predefined or custom message store property to a float value. | |
Sets a predefined or custom message store property to an int value. | |
Sets a predefined or custom message store property to a long value. | |
Sets a message listener class to receive QAnywhere messages asynchronously. | |
Sets a message listener class to receive QAnywhere messages asynchronously, with a message selector. | |
Allows you to set QAnywhere manager configuration properties programmatically. | |
Sets a predefined or custom message store property to a short value. | |
Sets a predefined or custom message store property to a string value. | |
Starts the QAManagerBase for receiving incoming messages in message listeners. | |
Stops the QAManagerBase's reception of incoming messages. | |
Causes a synchronization with the QAnywhere message server, uploading any messages addressed to other clients, and downloading any messages addressed to the local client. |
Use the QAManagerBase::start() method to allow a QAManagerBase instance to listen for messages. There must be only a single instance of QAManagerBase per thread in your application.
You can use instances of this class to create and manage QAnywhere messages. Use the QAManagerBase::createBinaryMessage() method and the QAManagerBase::createTextMessage() method to create appropriate QAMessage instances. QAMessage instances provide a variety of methods to set message content and properties. To send QAnywhere messages, use the QAManager::putMessage() to place the addressed message in the local message store queue. The message is transmitted by the QAnywhere Agent based on its transmission policies or when you call the QAManagerBase::triggerSendReceive().
For more information about qaagent transmission policies, see Determining when message transmission should occur on the client.
Messages are released from memory when you close a QAManagerBase instance using the QAManagerBase::close().
You can use QAManagerBase::getLastError, QAManagerBase::getLastNativeError, and QAManagerBase::getLastErrorMessage to return error information when a QAException occurs. QAManagerBase also provides methods to set and get message store properties.
For more information, see Client message store properties and the MessageStoreProperties.
beginEnumStorePropertyNames method
browseClose method
browseMessages method
browseMessagesByID method
browseMessagesByQueue method
browseMessagesBySelector method
browseNextMessage method
cancelMessage method
close method
createBinaryMessage method
createTextMessage method
deleteMessage method
endEnumStorePropertyNames method
getAllQueueDepth method
getBooleanStoreProperty method
getByteStoreProperty method
getDoubleStoreProperty method
getFloatStoreProperty method
getIntStoreProperty method
getLastError method
getLastErrorMsg method
getLastNativeError method
getLongStoreProperty method
getMessage method
getMessageBySelector method
getMessageBySelectorNoWait method
getMessageBySelectorTimeout method
getMessageNoWait method
getMessageTimeout method
getMode method
getQueueDepth method
getShortStoreProperty method
getStringStoreProperty method
nextStorePropertyName method
putMessage method
putMessageTimeToLive method
setBooleanStoreProperty method
setByteStoreProperty method
setDoubleStoreProperty method
setFloatStoreProperty method
setIntStoreProperty method
setLongStoreProperty method
setMessageListener method
setMessageListenerBySelector method
setProperty method
setShortStoreProperty method
setStringStoreProperty method
start method
stop method
triggerSendReceive method
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |