Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 10.0.1 » QAnywhere » QAnywhere C++ API Reference

recover function Next Page

QAManagerBase class


Syntax

public QAManagerBase

Derived classes
Remarks

This class acts as a base class for QATransactionalManager and QAManager, which manage transactional and non-transactional messaging, respectively.

Use the QAManagerBasestart() 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 QAManagerBasecreateBinaryMessage() method and the QAManagerBasecreateTextMessage() 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 QAManagerputMessage() 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 QAManagerBasetriggerSendReceive().

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 QAManagerBaseclose().

You can use QAManagerBasegetLastError and QAManagerBasegetLastErrorMessage 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 class.

See Also

QATransactionalManager class

QAManager class

Members

All members of QAManagerBase, including all inherited members.


beginEnumStorePropertyNames function
browseClose function
browseMessages function
browseMessagesByID function
browseMessagesByQueue function
browseMessagesBySelector function
browseNextMessage function
cancelMessage function
close function
createBinaryMessage function
createTextMessage function
deleteMessage function
endEnumStorePropertyNames function
getAllQueueDepth function
getBooleanStoreProperty function
getByteStoreProperty function
getDoubleStoreProperty function
getFloatStoreProperty function
getIntStoreProperty function
getLastError function
getLastErrorMsg function
getLongStoreProperty function
getMessage function
getMessageBySelector function
getMessageBySelectorNoWait function
getMessageBySelectorTimeout function
getMessageNoWait function
getMessageTimeout function
getMode function
getQueueDepth function
getShortStoreProperty function
getStringStoreProperty function
nextStorePropertyName function
putMessage function
putMessageTimeToLive function
setBooleanStoreProperty function
setByteStoreProperty function
setDoubleStoreProperty function
setFloatStoreProperty function
setIntStoreProperty function
setLongStoreProperty function
setMessageListener function
setMessageListenerBySelector function
setProperty function
setShortStoreProperty function
setStringStoreProperty function
start function
stop function
triggerSendReceive function